VS2008,网页中插入flash不显示
我在网页中插入flash,用的是下面的代码
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="400" style="width: 176px">
<param name="movie" value="~flash/f1.swf"/>
<param name="quality" value="high"/>
<embed src="~flash/f1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550"
height="400">
</embed>
</object>
可以运行,但是flash无法显示,一直在加载
:(剩下1项)等待:http://localhost50054/website2/default.aspx...但是就是加载不了!!
小弟不才,望各位大侠帮助!
------解决方案--------------------检查版本
var s = new SWFObject("a.swf","mediaplayer","245","176","8");
s.addParam("allowfullscreen","true");
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1001" height="290">
<param name="movie" value="index/a.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<embed src="ndex/baner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1001" height="290"></embed>
</object>
------解决方案--------------------路径错误
<param name="movie" value="~flash/f1.swf"/>
正确的
<param name="movie" value="<%=Page.ResolveUrl("~")%>flash/f1.swf"/>
------解决方案--------------------<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="940" height="261">
<param name="movie" value="images/top.swf" />
<param name="quality" value="high" />
<embed src="images/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="940" height="261"></embed>
</object>
这个是绝对可以用的..但是你要修改两个地方..
<param name="movie" value="images/top.swf" /> 和
<embed src="images/top.swf" quality="high" 这里的value和src路径都要改成你自己flash的路径..
警告验证 (XHTML 1.0 Transitional): 不支持元素“embed”。 你可以不用管他...没关系的..我们现在还是用的html.不是xhtml
------解决方案--------------------<object type="application/x-shockwave-flash" width="400" height="300" id="cf_player">
<param name="movie" value="flash/cf_player.swf"/>
<param name="allowFullScreen" value="true" />
</object>
------解决方案--------------------