JCarousel 在 FF 中无法工作,但在 IE 中工作正常

发布于 2025-01-05 20:18:44 字数 553 浏览 7 评论 0原文

预先感谢您的任何帮助!

我正在 Business Catalyst 上构建一个网站,并在其中使用了 jCarousel。测试站点是 it4kids.businesscatalyst.com。

我无法让 3 个 jCarousel 实例在 FF 中工作,但在 IE 中一切正常。我有 IE 9.0.81110.16421 和 FF 10.0.1

我可以在 Firebug 中看到 SCRIPTS.JS 文件上有一个错误,如下所示:

块引用

安全错误

[中断此错误] if(sheets[sheetIndex].cssRules || Sheets[sheetIndex].rules){ SRIPTS.JS 第 717 行

块引用

在 IE 中不会出现此错误(使用 Firebug lite 查看时)。

任何想法/想法将不胜感激。我确信这是一个小问题,因为我花了太多时间试图找到它,所以我似乎看不到它!

再次感谢 马克

Thanks in advance for any help!

I am working on building a site on Business Catalyst and have used jCarousel in it. The test site is it4kids.businesscatalyst.com.

I cannot get the 3 jCarousel instances to work in FF, but all fine in IE. I have IE 9.0.81110.16421 and FF 10.0.1

I can see in Firebug that there is an error on SCRIPTS.JS file shown as:

Blockquote

SECURITY ERROR

[Break On This Error] if(sheets[sheetIndex].cssRules || sheets[sheetIndex].rules){
SRIPTS.JS line 717

Blockquote

This error does not appear in IE (when using Firebug lite to view).

Any thoughts / ideas will be really appreciated. I am sure it is a small issue that I cannot seem to see from spending too much time on trying to find it!

Thanks again
Marc

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

像极了他 2025-01-12 20:18:44

您可能正在加载一些跨站点样式表,并且 jCarousel 显然尝试检查加载的样式表。 Firefox 不允许跨站点样式表这样做,因为这将是一个安全漏洞。

您需要确保所有样式表都是同源的,或者修复相关的 jCarousel 代码以尝试/捕获或根本不查看跨站点表。

You're presumably loading some cross-site stylesheet and jCarousel apparently tries to examine loaded stylesheets. Firefox doesn't allow that for cross-site stylesheets because it would be a security hole.

You need to either make sure all your stylesheets are same-origin or fix the relevant jCarousel code to either try/catch or not look at cross-site sheets at all.

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