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

解决方法:

在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>');

你可能感兴趣的:(当z-index对flash不感冒时。。。)