30
Apr

I have a flash video that plays in the corner of a page, and I want the user to be able to shut it whenever they would like.

My mockup is at http://www.travel4university.com/testlay…

I found code at Javascripttoolbox.com to shut a modal popup div from with in itself using a button, but it isn't working with my div layer for some reason. I know the problem is with the

EMBED VIDEO CODE GOES HERE AND WORKS FINE

Any ideas?


Answer:
I am not sure where you got the Popup.hide code from. It isn’t part of you page…

Instead of Popup.hide('video') do

onClick=”var lyr =

document.getElementById('video');

lyr.style.display='none';”

however the video might still be playing while the layer is hidden

So this is better:

onClick=”var lyr =

document.getElementById('video');

lyr.innerHTML='';”

Note the ='' are two single quotes

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

This entry was posted on Wednesday, April 30th, 2008 at 2:29 pm and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment