Quality | Integrity | Professional
z-index Flash Objects Thickbox Fix
Submitted by phil on Wed, 2007/09/12 - 19:01.
Mani's Solution
I had an issue with thickbox where it would show the image behind a flash video in FireFox. IE7 worked great. I ran across Sheriar Designs Blog posting a fix specifically for DHTML menus over a flash video. I figured I would give it a try and much to my surprise, the suggestion worked! I give ALL CREDIT to the author of the blog, Mani (Pronounced like Bonnie, not Mani like Danny)
I merely wanted to blog the information for my own record keeping, plus to help 'index' the solution for others.
Mani's Solution
- Wrap your flash content in a div
- Add
<param name="wmode" value="transparent"> to your object tag
- Set
wmode="transparent" in the embed tag
- Use css to set the position and z-index for your div (don't set negative z-index values as it will make your flash disappear)
The CSS
<param name="wmode" value="transparent"> to your object tagwmode="transparent" in the embed tag#flash {
position: relative; /*or absolute*/
z-index: 0;
}The XHTML
<div id="flash">
<object ...>
<param name="wmode" value="transparent">
<embed ... wmode="transparent">
</object>
</div>And, in Mani's words... That's It!

Worked perfectly...Thank you!
I had the same problem - except that it was working fine in Firefox, but not in IE7 (go figure). Anyways the fix you suggested worked like a charm. Thank you!