admin管理员组

文章数量:1279021

I have a SWF Video player on my webpage. I want to draw a div tag over it with a high z-index to act as a popup on it . Its a very generic popup. Hence I cannot make it as a part of swf. but, SWF seems to have very high zIndex and would not allow any HTMLO entity to sit over it. How do I achieve this or is there an alternate solution.

Thanks.

I have a SWF Video player on my webpage. I want to draw a div tag over it with a high z-index to act as a popup on it . Its a very generic popup. Hence I cannot make it as a part of swf. but, SWF seems to have very high zIndex and would not allow any HTMLO entity to sit over it. How do I achieve this or is there an alternate solution.

Thanks.

Share Improve this question asked Jan 27, 2009 at 8:36 RakeshRakesh 5,8938 gold badges38 silver badges38 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 9

There are some arguments that have to be passed to the SWF file in order to be able to achieve that. In the HTML representation, inside the object tag you should put:

<param name="wmode" value="transparent">

and...

<embed wmode="transparent" ... 

A similar value should apply if you're using a JS library to render the SWF object.

You need to add a param to the flash object <param NAME="wmode" VALUE="transparent"> this puts it back in the "flow" and allows other html elements to go on top

oh and add the wmode="transparent" to th embed tag

A fast & dirty technique is to replace swf with a black / white image (just a different class for the swf container with a repeated background image) every time you show your overlay div and then change it back to normal when the overlay div is close.

Another technique is using iframe for swf but that's not too fancy I guess :)

本文标签: javascriptHTML Object over a SWFStack Overflow