有什么问题?
Internet Explorer 9(本地和Web上)无法在随机刷新时加载我的Flash横幅。例如,我只是完全重新加载页面19次,第19次加载横幅。如果我使用强制刷新(CTRL + F5)或完全清除缓存(甚至手动转储Temporary Internet Files目录),它在修复情况方面没有用。这让我相信它不是缓存问题。 Firefox和& Chrome总是能够完美地加载它,但我需要在IE中使用它,因为该网站主要面向该受众。
如何导出此Flash文件并将其嵌入?
我使用Flash CS5使用Flash横幅,将.swf导出为Flash Player 8 / Actionscript 2.0。
我在Dreamweaver CS5默认情况下嵌入了闪存,但如果Flash播放器不存在或早于Flash Player 6,则添加备用(图像)。以下是嵌入代码:
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="778" height="313" title="title">
<param name="movie" value="file.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<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="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="file.swf" width="778" height="313" title="title">
<!--<![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" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div class="alternative_logo"> </div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
如果有人可以帮我解决这个问题,我会非常感激。谢谢你的时间。
答案 0 :(得分:1)
您应该考虑使用swfobject来嵌入SWF。它可以很好地处理各种浏览器怪癖。
的示例<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject - step 3</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myId", "9.0.115", "expressInstall.swf");
</script>
</head>
<body>
<div>
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">
<param name="movie" value="myContent.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">
<!--<![endif]-->
<p>Alternative content</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>