Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6997663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:18:43+00:00 2026-05-27T20:18:43+00:00

Anyone know why when I click the #stopbar the #player doesn’t disapear? I can

  • 0

Anyone know why when I click the #stopbar the #player doesn’t disapear? I can click the .thumb and get the #player to show up, but getting it to go away doesn’t work.

Here’s a link to it in action: http://neroedge.shiftarch.com/

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>NeroEdge</title> 
        <link href="style.css" rel="stylesheet" type="text/css" />
        <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript">
        $(document).ready(function(){
            var ids = new Array("U61s9-SzrtQ","Volvo","BMW");
            var photoNum = 0;
            var maxPhotos = 4;
            var maxDisplay = 4; //must be able to /2

            function getTempVar(i){
                var temp = i;

                if(temp < 0) temp += maxPhotos;
                if(temp >= maxPhotos) temp -= maxPhotos;

                return temp;
            }

            function getGallery(){
                $("#gallery").empty();
                var temp = photoNum - (maxDisplay/2);

                for(var i = 0; i < maxDisplay; i += 1){
                    temp += 1;
                    var v = getTempVar(temp);
                    $("#gallery").append("<img class=\"thumb\" src=\"/images/gallery/thumb/"+v+".png\" alt=\""+ids[v]+"\" />");
                }
            }

            getGallery();

            $("#leftbutton").click(function(){
                photoNum -= 1;

                if(photoNum < 0) photoNum = maxPhotos - 1;
                getGallery();
            });

            $("#rightbutton").click(function(){
                photoNum += 1;

                if(photoNum >= maxPhotos) photoNum = 0;
                getGallery();
            });

            $(".thumb").click(function(){
                $("#player").css("display","block");
                $("#player").css("position","absolute");
                $("#player").css("top", (($(window).height()/2) - 240) + $(window).scrollTop() + "px");
                $("#player").css("left", (($(window).width()/2) - 360) + $(window).scrollLeft() + "px");
                $("#player").html("<div id=\"stopbar\">Press this to close video</div><iframe width=\"640\" height=\"480\" src=\"http://www.youtube.com/embed/"+$(this).attr("alt")+"\" frameborder=\"0\" allowfullscreen></iframe>");
            });

            $("#stopbar").click(function(){
                $("#player").css("display","none");
                $("#player").css("position","absolute");
                $("#player").css("top", "0px");
                $("#player").css("left", "0px");
                $("#player").html("<div id=\"stopbar\">Press this to close video</div>");
            });
        });
        </script>

        </head>

    <body>

        <div id="player">
            <div id="stopbar">Press this to close video</div>
        </div>

        <div id="wrap">
            <div id="banner">
                <img src="images/banner.png" alt="NeroEdge" />
            </div>

            <div id="main">

                <div id="navibar">
                    <div id="title">NeroEdge - By William Starkovich</div>
                    <div id="tester">Become a Tester</div>
                </div>

                <br />

                <div id="bigcolumn">
                    <div id="gallerywrap">
                        <a href="#" id="leftbutton"><img id="lbutton" src="/images/gallery/left.png" alt="Left Button" /></a>
                        <div id="gallery">Gallery not loaded.</div>
                        <a href="#" id="rightbutton"><img id="rbutton" src="/images/gallery/right.png" alt="Right Button" /></a>
                    </div>

                    <br />
                    <br />
                    <br />
                    <br />

                    <hr style="width: 80%; color: #00ffff;"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:18:43+00:00Added an answer on May 27, 2026 at 8:18 pm

    You can use .live() instead of .click() on the #stopbar. You add the html for the #stopbar after the page has rendered, which is why it won’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Flexigrid is awesome but does anyone know if it supports a right click event
Does anyone know how to remove the click sound you get when navigating to
Does anyone know how can i invoke a method on the click of the
anyone know why it doesn't work?? <script src=http://code.jquery.com/jquery-1.4.4.js></script> <script> $('#main').click(function() { alert('foobar'); document.location.href='02.html'; });
Anyone know if there's a way to get click event from a button that
does anyone know how to show the new list element form on button click,
Anyone know of some trick I can use to get facebook to authenticate a
Does anyone know exactly what Windows XP does when you click Repair on a
Does anyone know utility which can measure work intensity. For example - keystrokes\mouse clicks
Does anyone know how I can add a context menu item that would compress

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.