How to display javascript on top of flash
Ever had that experience where your javascript is shown behind your flash file? Take a look at this example problem:
Having this problem is such an annoyance for webdesigners since this greatly affects the overall design of the site. So I did a search how to solve this problem. Here is what you need to add on your html embed code.
<param name=”wmode” value=”transparent”>
and
<embed wmode=”transparent” src=”flash.swf”>
Update: October 31,2007Â
if you are using, AC_FL_RunContent, add this
<script type=”text/javascript”>
AC_FL_RunContent( ‘codebase’,'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0′,’width’,’1000′,’height’,’650′,’src’,'catalogue’,'quality’,'high’,'pluginspage’,'http://www.macromedia.com/go/getflashplayer’,'movie’,'catalogue’,‘wmode’,'transparent’ ); //end AC code
</script>
After you’ve updated the file, it should look like this:
This fix works on both IE and Firefox, not sure if it’ll work with other browsers though. Hope this helps. Let me know if you have problems. Thanks.
Check my other posts:
- What’s the drama with Wilyonaryo all about?
This controversy has been spread like wildfire all over the... - Is Ukay Ukay a scam?
I have heard that the “ukay-ukay” stores all over the... - Where were you 22 years ago?
I was too young to remember all the events that... - 111 years of freedom celebrated all over the world
Today is the 111th year of Philippine Independence from the... - Games UpLate Live Scam? Or Another Technical Glitch?
Now here is another ‘scandal’, ‘scam’, ‘controversy’, ‘issue’ or ‘whatever... - Change .php to .html using .htaccess or httpd.conf
It is common that when a site already has so... - The Killing Peso Dollar Exchange Rate
Alright, I admit that the Philippine Peso is doing really... - Using Smarty – Template Engine
Many of the new development projects I am working on... - The Amazing Race Asia 3 Official Winners
Update: I hate to say I told you so, Sam... - Zaidolastik: Which is better Zaido or Lastikman?
Who is Lastikman? Lastikman is a fictional character and superhero...
8 Responses to “ How to display javascript on top of flash ”
I can’t seem to get this to work in IE7, I even tried putting the Flash object and the JavaScript object in seperate DIVs and asigning a z-index to them, still no luck. Any suggestions? Thanks!
Thanks Holly for the comment. I will try to test on IE7 and will update the post if I find a fix for this problem.
on ie7 and firefox not worked … still flash on top …
—
ie7 ve firefox da ise yaramadi … flash hala ustte…
cxc, whats the url?
alfredo,
noting url … still designing pages but i found a solution for the problem here is a link;
http://blog.deconcept.com/swfobject
for demo;
http://www.property-magic.com/lightbox_over_flash.html
thanks a lot
Thanks Alfredo worked for me :)
Thank you so much Mr. Alfredo, this script help me a lot. Thank you so much.
Leave a Reply