我遇到了一些IE8问题,我还不熟悉这个问题。 视频无法使用I8和以下版本播放。我的目标只是IE8。但我不知道如何实现它,也不熟悉adobe flash。
问题:我可以使用操作脚本解决此问题吗?如果是这样,我如何将脚本完全应用到我的代码中
我正在使用的网站是:http://210.48.94.218/~printabl/about-us/our-culture/
我的代码如下所示:
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="172" height="250" id="FlashID" title="printableIntro">
<param name="movie" value="printableIntro.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" /><!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
<param name="autoplay" value="false"/>
<param name="play" value="false"/>
<param name="flashvars" value="autoplay=false" />
<param name="expressinstall" value="Scripts/expressInstall.swf" /><!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]-->
</object>
<object type="application/x-shockwave-flash" data="printableIntro.swf" width="172" height="250">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<param name="autoplay" value="false"/>
<param name="play" value="false"/>
<param name="flashvars" value="autoplay=false" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]-->
</object>
<!--<![endif]-->
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
答案 0 :(得分:4)
使用SWFObject
https://code.google.com/p/swfobject/
以下是您使用它的方式
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent"> This text is replaced by the Flash movie. </div>
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
so.write("flashcontent");
</script>
以下是每个参数的含义
var so = new SWFObject(swf, id, width, height, version, background-color [, quality, xiRedirectUrl, redirectUrl, detectKey]);
创建一个新的SWFObject并传入所需的参数:
可选参数是:
detectKey - 这是绕过检测时SWFObject脚本将查找的url变量名称。默认为'detectflash'。示例:要绕过Flash检测并简单地将Flash影片写入页面,可以将?detectflash = false添加到包含Flash影片的文档的URL中。
so.write( “flashcontent”);
通过替换指定HTML元素中的内容,告诉SWFObject脚本将Flash内容写入页面(如果用户系统上安装了正确的插件版本)。