flash背景透明的代碼在IE中(zhōng)能顯示正常:
<objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="160">
<paramname="movie" value="webjx_com.swf">
<paramname="wmode" value="transparent"> <embedsrc="webjx_com.swf"quality="high"pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash"width="760"height="160"></embed>
</object>
但在Firefox浏覽器卻發現出現透明的Flash沒有透明的效果,在Mozilla,Firefox浏覽器中(zhōng)起作用的是這個标簽<embed></embed>那這樣,在<embed>标簽内加入屬性wmode="transparent"就可以實現flash背景透明,修改代碼如下(xià):
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="836" height="488">
<param name="movie" value="flash/project.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="flash/project.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="836" height="488" wmode="transparent"></embed>
</object>
這樣在兩個主流浏覽器上都可以實現flash透明了
<objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="160">
<paramname="movie" value="webjx_com.swf">
<paramname="wmode" value="transparent"> <embedsrc="webjx_com.swf"quality="high"pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash"width="760"height="160"></embed>
</object>
但在Firefox浏覽器卻發現出現透明的Flash沒有透明的效果,在Mozilla,Firefox浏覽器中(zhōng)起作用的是這個标簽<embed></embed>那這樣,在<embed>标簽内加入屬性wmode="transparent"就可以實現flash背景透明,修改代碼如下(xià):
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="836" height="488">
<param name="movie" value="flash/project.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="flash/project.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="836" height="488" wmode="transparent"></embed>
</object>
這樣在兩個主流浏覽器上都可以實現flash透明了