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