在IE.IS上没有加载swf文件,需要在IE上更改任何设置
<div>
<table style="table-layout:fixed;width:100%;">
<tr>
<td width="20%">
<object width="100" height="100" id="microphone">
<embed src="/media/players/game.swf" width="250" height="250" type='application/x-shockwave-flash'>
</embed>
</object>
</td>
</tr>
</table>
</div>
答案 0 :(得分:1)
答案 1 :(得分:0)
我认为这不是嵌入Flash电影的官方语法吗?
有关完整示例,请参阅Adobe知识库中的OBJECT and EMBED syntax。
<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550"
HEIGHT="400"
id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED
href="/support/flash/ts/documents/myFlashMovie.swf"
quality=high
bgcolor=#FFFFFF
WIDTH="550" HEIGHT="400" NAME="myMovieName"
ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
(为了清晰起见,添加了换行符)
答案 2 :(得分:0)
IE在SWF文件方面遇到问题。试试这个适用于我的代码。用宽度和高度替换X和Y,用源文件替换[SOURCE SWF]。
<!--[if IE]>
<object width="X" height="Y" type="application/x-shockwave-flash" data="[SOURCE SWF]" name="Web" style="width: Xpx; height: Ypx;" id="flash">
<param name="movie" value="[SOURCE SWF]">
<param name="quality" value="high"> <param name="bgcolor" value="#FFFFFF">
<param name="allowScriptAccess" value="always">
<!--[endif]-->
然后将其放在下面,用于非IE浏览器:
<!--[if !IE]> -->
<object width="X" height="Y" codebase="http://fpdownload.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param name="SRC" value="bookmark.swf">
<embed src="[SOURCE SWF]" height="X" width="Y"> </object>
<!-- <![endif]-->