无法让 jQuery Cycle 在 Amazon Webstore 中工作

发布于 2024-09-14 19:00:51 字数 386 浏览 9 评论 0原文

我正在绕圈,试图找出为什么我无法让 jQuery Cycle 在我们的亚马逊商店中运行。 jQuery 似乎工作正常,因为我可以从控制台运行命令,但每当我尝试调用 .cycle() 时,我都会收到“*.cycle() 不是函数”错误。我在其他几个网站上使用过cycle,没有任何问题,但这让我完全困惑。

这是一个非常基本的测试页面的链接,其中包含一个我无法使用的 Cycle 实例: http://www.st-amz.com/content/Slideshow.htm

亚马逊的代码一团糟,所以它可能与页面上的内容不合规有关,我不知道。任何帮助将不胜感激。

I'm running around in circles trying to figure out why I can't get jQuery Cycle to work in our Amazon store. jQuery seems to be working fine, as I can run commands from the console, but any time I try to call .cycle(), i get a "*.cycle() is not a function" error. I've used cycle on several other websites with no problems, but this has completely confounded me.

Here's a link to a very basic test page with a Cycle instance that I can't get to work:
http://www.st-amz.com/content/Slideshow.htm

Amazon's code is a complete mess, so it could have something to do with stuff on the page being non-compliant, I don't know. ANY help would be appreciated.

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

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

发布评论

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

评论(2

情独悲 2024-09-21 19:00:51

您的脚本标记指向错误的 URL:

http:// www.st-amz.com/content/images/jquery.cycle.min.js

但是cycle位于你的根目录之外:

http://www.st-amz.com/images/jquery.cycle.min.js

因此,更改脚本标记以使用 root-相对路径,它应该按预期工作:

<script src="/images/jquery.cycle.min.js" type="text/javascript"></script>

Your script tag is pointing to the wrong URL:

http://www.st-amz.com/content/images/jquery.cycle.min.js

But cycle is located off your root:

http://www.st-amz.com/images/jquery.cycle.min.js

So change the script tag to use a root-relative path and it should work as expected:

<script src="/images/jquery.cycle.min.js" type="text/javascript"></script>
情何以堪。 2024-09-21 19:00:51

循环插件的路径不正确,这会导致 404:

<script type="text/javascript" src="images/jquery.cycle.min.js"></script>

看起来这不是正确的 URL:

http://www.st-amz.com/content/images/jquery.cycle.min.js

The path to your cycle plugin isn't correct, this results in a 404:

<script type="text/javascript" src="images/jquery.cycle.min.js"></script>

Looks like this isn't the right URL:

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