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 badges3 Answers
Reset to default 9There 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
版权声明:本文标题:javascript - HTML Object over a SWF - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741212323a2359368.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论