HTML插入FLASH
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="420" height="336" >
<param name="movie" value="http://vxxx.com/player/player.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="opaque" />
<embed wmode="opaque" src="http://v.nie.netease.com/com/player/player.swf" quality="high" allowscriptaccess="always" allowFullScreen="true" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="420" height="336"></embed>
</object>
后在一次,我在html中用js调用flash里面的函数:
document.getElementById(‘player2‘).Reset();
在ie中死活在报错,firefox,chrome则没有问题。
现在用了一个更简单的代码,执行上述js在ie678,firefox,chrome下没有问题,我确实搞不懂上面的<embed>标签是用来干嘛的:
<object id="player2" width="488" height="518"type="application/x-shockwave-flash" data="swf/flash.swf">
<param value="transparent" name="wmode">
<param value="always" name="allowScriptAccess">
<param value="swf/flash.swf" name="movie">
<param value="high" name="quality">
</object>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。