防止html5后备代码与flash swf一起加载的最佳方法是什么?
我认为只有当flash player不存在时才会加载后备代码,但似乎它不仅会加载回退html,而是首先加载它并在IE10中将swf文件标记为待处理(如fiddler中所见)直到?后备? iframe完全加载?
在这种情况下,它是一个flash交互式动画横幅,adobe边缘html5后备加载在iframe标记中,放置在flash的对象标记的后备区域。
<!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>ad_750x220_comm_noCTA</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body { height:100%; background-color: #ffffff;}
body { margin:0; padding:0; overflow:hidden; }
#flashContent { width:100%; height:100%; }
</style>
</head>
<body>
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="750" height="220" id="ad_750x220_comm_noCTA" align="top">
<param name="movie" value="ad_750x220_comm_noCTA.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="noscale" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="ad_750x220_comm_noCTA.swf" width="750" height="220">
<param name="movie" value="ad_750x220_comm_noCTA.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="noscale" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<iframe width="750" height="220" frameborder="0" scrolling="no" src="750x220.html"></iframe>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>
...现在iframe标签在主swf文件之前加载它的内容时优先,即使安装了flash播放器。