Log in

View Full Version : hidden div that will show a flash movie on click



gul
10-19-2010, 02:57 PM
i want to hide div & then show on click event.
any body can help me.

davelf
10-20-2010, 02:13 AM
ajax could help, this is the example:

ajax (http://www.dynamicdrive.com/forums/attachment.php?attachmentid=3591&stc=1&d=1287540811)

gud luck:)

molendijk
10-20-2010, 09:53 PM
You need javascript. Ajax is not needed, you can do it with innerHTML.
An example would be:

<a href="javascript: void(0)" onclick="document.getElementById('video').style.display='block';document.getElementById('video').innerHTML='<object type=\'application/x-shockwave-flash\' style=\'position: absolute; left:20%; top: 20%; width:60%; height: 60%\' data=\'http://www.youtube.com/v/sUfxjBA8PxM&amp;autoplay=1&amp;rel=0&amp;showinfo=0&amp;fs=1\' ><param name=\'movie\' value=\'http://www.youtube.com/v/sUfxjBA8PxM&amp;autoplay=1&amp;rel=0&amp;showinfo=0&amp;fs=1\' ><param name=\'wmode\' value=\'transparent\'><param name=\'allowNetworking\' value=\'internal\'><param name=\'allowFullScreen\' value=\'true\'><\/object>'">Play</a>

<br><a href="javascript: void(0)" onclick=document.getElementById('video').innerHTML=''>Stop</a><br>

<div id="video"></div>
Arie Molendijk

gul
10-21-2010, 04:30 AM
thanks for your support.
Is there any solution to resolve browser compatibility

as www.tanwer.info is the site that seems ok in IE but mes up in firefox.

molendijk
10-21-2010, 09:53 AM
try to use AJAX, from this one you will get output.
This doesn't seem to have anything to do with Ajax. It's a css-problem.

thanks for your support.
Is there any solution to resolve browser compatibility as www.tanwer.info is the site that seems ok in IE but mes up in firefox.
If you want to center parts of your page, this (http://www.dynamicdrive.com/forums/blog.php) and this (http://www.let.rug.nl/molendyk/div_size_with_pixelprecision/exact.html) may help.
===
Arie.