当z-index对flash不感冒时。。。

来源:互联网 发布:java转行 编辑:程序博客网 时间:2024/05/01 04:02

解决方法:

在flash的Object中加一个参数:

     IE:<param name="wmode" value="Opaque"/>

 

FireFox:添加参数:wmode="transparent"

 

案例:

                            document.write('<param name="wmode" value="Opaque" />');
                            document.write('<param name="FlashVars" value="vcastr_file=' + files + '&vcastr_title=' + texts + '&IsAutoPlay=0">');
                            document.write('<embed src="vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file=' + files + '&vcastr_title=' + texts + '&IsAutoPlay=0" menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"wmode="transparent"/>'); document.write('</object>');

原创粉丝点击