ie和firefox浏览器对透明flash的兼容性问题

< DOCTYPE html PUBLIC -WCDTD XHTML StrictEN httpwwwworgTRxhtmlDTDxhtml-strictdtd>
ie和firefox浏览器对透明flash的兼容性问题[ 2007-02-05 10:04:28 | 作者: Admin ] 字体大小: | |

在IE中显示透明:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="148">
<param name="movie" value="swf/top.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="swf/top.swf" quality="high" pluginspage="http://www.ma
cromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="148"></embed>
</object>

在FireFox中显示透明:!
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cab
s/flash/swflash.cab#version=6,0,29,0" width="770" height="148">
<param name="movie" value="swf/top.swf" />
<param name="quality" value="high" />
<embed src="swf/top.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflas
hplayer" type="application/x-shockwave-flash" width="770" height="148"></embed>
</object>

在两种浏览器中都显示透明:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockw
ave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="148">
<param name="movie" value="swf/top.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="swf/top.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashp
layer" type="application/x-shockwave-flash" width="770" height="148"></embed>
</object>

原来要在Embed标签下加上wmode="transparent”这个属性。

本文转自 netcorner 博客园博客,原文链接:http://www.cnblogs.com/netcorner/archive/2007/05/20/2912379.html  ,如需转载请自行联系原作者

上一篇:nagios监控mysql(check_mysql)及内存使用率(check_mem)


下一篇:Qt编写自定义控件63-水波效果