sabecs
asked on
JavaScript drop down menu to cover a flash header
Hi,
I have a have a JavaScript drop down menu which is just above a flash header.
How can I get the drop down menu to cover the flash file when it drops down?
I have a have a JavaScript drop down menu which is just above a flash header.
How can I get the drop down menu to cover the flash file when it drops down?
@sabecs
Set the z-index for both.....
The z-index property sets the stack order of an element. An element with greater stack order is always in front of another element with lower stack order.
Set the z-index for both as per the overlapping needs...
Put both the elements inside the div and as you want dropdown to overlap the flash object do this...
<DIV STYLE="z-index:1; position:relative">
...
..
.
DROPDOWN CODE....
.
..
...
</DIV>
<DIV STYLE="z-index:0; position:relative">
...
..
.
FLASH OBJECT CODE....
.
..
...
</DIV>
Set the z-index for both.....
The z-index property sets the stack order of an element. An element with greater stack order is always in front of another element with lower stack order.
Set the z-index for both as per the overlapping needs...
Put both the elements inside the div and as you want dropdown to overlap the flash object do this...
<DIV STYLE="z-index:1; position:relative">
...
..
.
DROPDOWN CODE....
.
..
...
</DIV>
<DIV STYLE="z-index:0; position:relative">
...
..
.
FLASH OBJECT CODE....
.
..
...
</DIV>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help.
The link pointed to in the accepted solution above is dead.
as in.
<object classid="clsid:D27CDB6E-AE
<param name="WMode" value="Transparent">
<param name="movie" value="yourfile.swf">
<param name="quality" value="high">
<embed src="yourfile.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockw
</object>
if you're using the javascript option to embed then simply change it there.
blu.