I use SWFObject to insert Flash.

in html I have:
<div class="flash" title="path/file.swf" 
style="width:100px;height:200px">If you can see this, then you have not 
flash.</div>

and javascript:

$("div.flash").each(function(){
                this.style.zIndex = "1";
                this.style.visibility = "visible";
                var so = new SWFObject(this.title, this.id, this.style.width, 
this.style.height, "8", "#ffffff");
                so.addParam("wmode", "transparent");
                so.addParam("bgcolor", "#FFFFFF");
                so.write(this.id);
        });

Really only you need set wmode param to "transparent" and set some bgcolor.

That only works in Windows Flash plugin, the Linux version doesn't 
support wmode :(

----- Original Message -----
Subject: [jQuery] Using JQuery to fix Flash z-index problem?
Date: Wed, 17 Jan 2007 11:19:59 -0800 (PST)
From: rolfsf


I'm using toggle to show/hide a div that partially overlaps a flash movie.
Apparently, flash, being active content, will always rise to the top of the
stacking order. Since I can see that my div will sit on top until the flash
loops or updates, I'm wondering if there is a javascript or jquery method of
keeping the div active and therefore on top? Or, has anyone found a
reliable method for forcing flash back into the normal stacking order?
-- 
View this message in context: 
http://www.nabble.com/Using-JQuery-to-fix-Flash-z-index-problem--tf3029277.html#a8416980
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

-- 
Saludos,
 José Francisco Rives Lirola <jfrlATum.es>

 Grupo de Apoyo a la Tele-Enseñanza
 http://www.um.es/atica/gat
 ext: 8277
 
 Edificio ATICA
 Campus de Espinardo
 Universidad de Murcia
 30100 Murcia-España


-- 
Best Regards,
 José Francisco Rives Lirola <sevir1ATgmail.com>

 SeViR CW · Computer Design
 http://www.sevir.org
  
 Murcia - Spain


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to