FF 和 SWFObject 中的错误IE,在 Chrome 中运行良好
我注意到在使用 Autoviewer(Flash 画廊)时我的网站上出现了一个奇怪的问题。我以前从未注意到这个问题,我发誓直到几个月前它都工作正常,但我的画廊在 Chrome 中加载正常,但在 IE 和 FF 中显示不正确的尺寸。
这是我在 IE 中收到的错误:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Mon, 19 Sep 2011 07:30:23 UTC
Message: 'SWFObject' is undefined
Line: 114
Char: 3
Code: 0
URI: http://mikegreenephotography.com/sports/sports.html
Message: 'SWFObject' is undefined
Line: 125
Char: 3
Code: 0
URI: http://mikegreenephotography.com/sports/sports.html
在 FF 中,我得到:
SWFObject is undefined
var fo = new SWFObject("autoviewer.swf", "autoviewer", "100%", "75%", "8", "#181818");
在 Chrome 中,该网站工作正常。我不明白。我很感激任何帮助。
I've noticed that I have a strange issue on my website when using Autoviewer (a flash gallery). I never noticed the issue before and I swear it was working fine up until a few months ago, but my gallery will load fine in Chrome, but display the incorrect dimensions in IE and FF.
Here's the error I receive in IE:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Mon, 19 Sep 2011 07:30:23 UTC
Message: 'SWFObject' is undefined
Line: 114
Char: 3
Code: 0
URI: http://mikegreenephotography.com/sports/sports.html
Message: 'SWFObject' is undefined
Line: 125
Char: 3
Code: 0
URI: http://mikegreenephotography.com/sports/sports.html
In FF I get:
SWFObject is undefined
var fo = new SWFObject("autoviewer.swf", "autoviewer", "100%", "75%", "8", "#181818");
In Chrome the site works fine. I don't get it. I appreciate any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看网站的 http 响应,您会收到
swfobject.js
文件的 404:您需要将
swfobject.js
文件放在该位置,或更新您的 HTML 以反映正确的位置。将此行更改
为:
它将工作得很好。
If you look at the http responses for your site, you're getting a 404 for the
swfobject.js
file:You need to put the
swfobject.js
file in that location, or update your HTML to reflect the correct location.Change this line:
To this:
And it will work just fine.