Home Blog Archives Web Design Programming Search Marketing Study Online Subscribe Contact Me

Alfredo's Blog

Web Designer | Search Marketer | Programmer | Philippines | SMS: +639397005929 | YM: alfredopalconit

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:

How to display Javascript on top of Flash

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:

How to display Javascript on top of Flash

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:

  1. What’s the drama with Wilyonaryo all about?
    This controversy has been spread like wildfire all over the...
  2. Is Ukay Ukay a scam?
    I have heard that the “ukay-ukay” stores all over the...
  3. Where were you 22 years ago?
    I was too young to remember all the events that...
  4. 111 years of freedom celebrated all over the world
    Today is the 111th year of Philippine Independence from the...
  5. Games UpLate Live Scam? Or Another Technical Glitch?
    Now here is another ‘scandal’, ‘scam’, ‘controversy’, ‘issue’ or ‘whatever...
  6. Change .php to .html using .htaccess or httpd.conf
    It is common that when a site already has so...
  7. The Killing Peso Dollar Exchange Rate
    Alright, I admit that the Philippine Peso is doing really...
  8. Using Smarty – Template Engine
    Many of the new development projects I am working on...
  9. The Amazing Race Asia 3 Official Winners
    Update: I hate to say I told you so, Sam...
  10. Zaidolastik: Which is better Zaido or Lastikman?
    Who is Lastikman? Lastikman is a fictional character and superhero...
View Blog Archives: Click here

Alfredo is a web designer, programmer and a search engine marketer from the Philippines. He is also an amateur photographer and loves to travel. He can be found on Twitter, LinkedIn and Facebook. Questions? Send him an email.

8 Responses to “ How to display javascript on top of flash ”

  1. Holly Says:

    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!

  2. Alfredo Says:

    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.

  3. cxc Says:

    on ie7 and firefox not worked … still flash on top …

    ie7 ve firefox da ise yaramadi … flash hala ustte…

  4. Alfredo Says:

    cxc, whats the url?

  5. cxc Says:

    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

  6. chanadh Says:

    thanks a lot

  7. Diogo Areia Says:

    Thanks Alfredo worked for me :)

  8. npc Says:

    Thank you so much Mr. Alfredo, this script help me a lot. Thank you so much.

Leave a Reply