So you will need to ensure your z-indexes for the DIVs are in the correct
order as well as ensuring you have set wmode=transparent in the params
object you pass into the embedSWF() method so that the flash background
color does not mask the image behind.


Aran


-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of [email protected]
Sent: Friday, 3 April 2009 8:46 PM
To: SWFObject
Subject: swfobject 2.1,div contain flash cannot cover other divs



2 divs, both has same width height, the first div has background
image,
second contains flash,and use margin-top:-150px or position:absolute
to
make second div cover the first one. (please see the code below)


1.5 or previous version 2 div are overlapping, but in 2.1 version the
second div always hold its own position, i need the first div's
background
image,and also when flash is onloading, the page can show
something,not
just empty



code:
<script src="swfobject.js"></script>

<div style="width:200px;height:200px;background:green;"></div>
<div id="test"  style="margin-top:-150px; width:200px;height:200px"></
div>

<script>
swfobject.embedSWF("adtop_cn.swf", "test", "200", "200",
"6.0.0",false);
</script>

Thanks very much



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to