浏览器显示flash问题解决
(编辑:jimmy 日期: 2024/11/1 浏览:2)
最原始的方法是使用embed
<embed src="flash/guanggao.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="726" height="263" wmode="transparent" scale="Exactfit"></embed>
但是这个标签IE不支持,IE可以使用object
复制代码代码如下:
<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="726" height="263" data="flash/guanggao.swf">
<param name="movie" value="flash/guanggao.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="scale" value="Exactfit" />
</object>
如果想既兼容IE又兼荣其他浏览器可以这么使用
复制代码代码如下:
<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="726" height="263" data="flash/guanggao.swf">
<param name="movie" value="flash/guanggao.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="scale" value="Exactfit" />
<embed src="/UploadFiles/2021-03-30/guanggao.swf"></object>