Hi, I have embedded some flash like this:
<div id="id" style="display:none;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="392" height="321" id="logo" align="middle" style="display:none">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="file.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="file.swf" quality="high" bgcolor="#0000000" width="392" height="321" name="logo" align="middle" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
It is in div and when I first make style:display=none and later block it does not work on javascript function call. Is there any way to hide and display the flash object div for javascript function call.
This is the javascript:
document.getElementById("id").style.display = "block";
Thanks in advance.