FF 和 SWFObject 中的错误IE,在 Chrome 中运行良好

发布于 2024-12-05 04:23:13 字数 893 浏览 1 评论 0原文

我注意到在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

成熟稳重的好男人 2024-12-12 04:23:13

如果您查看网站的 http 响应,您会收到 swfobject.js 文件的 404:

Request URL:http://mikegreenephotography.com/swfobject.js
Request Method:GET
Status Code:404 Not Found

您需要将 swfobject.js 文件放在该位置,或更新您的 HTML 以反映正确的位置。

将此行更改

<script type="text/javascript" src="../swfobject.js"></script>

为:

<script type="text/javascript" src="/sports/swfobject.js"></script>

它将工作得很好。

If you look at the http responses for your site, you're getting a 404 for the swfobject.js file:

Request URL:http://mikegreenephotography.com/swfobject.js
Request Method:GET
Status Code:404 Not Found

You need to put the swfobject.js file in that location, or update your HTML to reflect the correct location.

Change this line:

<script type="text/javascript" src="../swfobject.js"></script>

To this:

<script type="text/javascript" src="/sports/swfobject.js"></script>

And it will work just fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文