为什么IE拒绝在我的网站上呈现swf? www.quickguitartuner.com
可能导致这种情况发生的原因是什么? Chrome和Firefox可以打开它,但IE9不会显示swf。
页面代码:
<html>
<head>
<meta http-equiv="Content-Language" content="pt-br">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Quick Guitar Tuner</title>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'my-site-id-on-analytics']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="900" height="550">
<param name="movie" value="Flash/bin/main2_secure.swf">
<param name="quality" value="High">
<embed src="Flash/main2_secure.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="900" height="550" quality="High">
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=127418320673531&xfbml=1"></script><fb:like href="www.quickguitartuner.com" send="false" layout="button_count" width="90" show_faces="false" font="" style="position:relative; left:395px; top:-217px" ></fb:like>
</object>
</p>
<!--<p align="center">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1830251538744722";
/* Quick Guitar Tuner */
google_ad_slot = "9658449272";
google_ad_width = 728;
google_ad_height = 90;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>//-->
<div align=center><a href='http://www.quickguitartuner.com'>
<img src='http://contador.s12.com.br/img-5234ayx9-57.gif' border='0' alt='contador de visitas gratis'></a></div>
<p align="center" style="position:relative; left:403px; top:-310px">
<g:plusone href="www.quickguitartuner.com"></g:plusone>
</p>
<p align="center" style="position:relative; left:403px; top:-380px">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</p>
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24145583-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
答案 0 :(得分:2)
电影参数和嵌入标签中的网址不同。因为IE从嵌入中读取而其他浏览器使用<param movie=
中的值,如果该文件在两个位置都不存在,这将导致问题。
答案 1 :(得分:1)
另外,尝试使用swfobject嵌入您的swf。需要大量的猜测工作,并且错误的空间较小。
<script type="text/javascript" src="PATH/TO/swfobject.js"></script>
<div id="obj1">Replacement Flash Content goes here.</div>
<script type="text/javascript">
var params = {
wmode: "opaque",
scaleMode: "noScale",
bgColor: "#FFFFFF",
allowFullScreen: true
};
var flashvars ={};
var attributes = {
id: "obj1",
name: "obj1"
};
if (typeof swfobject != "undefined") {
swfobject.embedSWF("Flash/bin/main2_secure.swf", "obj1", "900", "550", "10.0.0", null, flashvars, params, attributes);
}
</script>
答案 2 :(得分:1)
检查您的SWF来源 - 他们有所不同。我猜你用于嵌入的路径不存在,但Param会这样做。
添加/ bin / in,您将被设置。
答案 3 :(得分:1)
<param> value is set to
value="Flash/bin/main2_secure.swf"
and <embed> value is set to
src="Flash/main2_secure.swf"
两条路径应该相同。