图像滑块在 eBay 中无法正确显示

发布于 2024-12-09 01:50:48 字数 336 浏览 6 评论 0原文

对于:http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=160653524585&ssPageName=STRK:MESE:IT#ht_520wt_1398

单击缩略图时图像显示在下方 10-20 像素。它在私人主机上工作正常,但在 eBay 上有这个问题。任何修复或帮助都非常感谢。谢谢

For: http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=160653524585&ssPageName=STRK:MESE:IT#ht_520wt_1398

When a thumbnail is clicked the new image appears below by 10-20 pixels. It works fine on private host but on eBay has this issue. Any fix or help greatly appreciated. Thanks

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

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

发布评论

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

评论(1

雪花飘飘的天空 2024-12-16 01:50:48

您需要展示您的代码。所有缩略图都丢失了。

控制台给出了 404 错误...

无法加载资源:服务器响应状态为 404
(未找到)adventures_thumb.jpg

无法加载资源:服务器响应状态为 404
(未找到)stephens_thumb.jpg

无法加载资源:服务器响应状态为 404
(未找到)residential_thumb.jpg

无法加载资源:服务器响应状态为 404
(未找到)autism_thumb.jpg

无法加载资源:服务器响应状态为 404
(未找到)spiritual_thumb.jpg

您也收到了一堆类似的错误。您似乎在脚本中使用相对路径,因此它会在 eBay 的目录中查找这些内容。我假设您自己托管这些组件,因此您需要使用完整的绝对路径,包括所有内容上的http://yourServer.com/yourPath/,以及您引用的所有内容资产。

(顺便说一句,据我所知,我认为 eBay 不允许在其拍卖列表中使用任何脚本。)


编辑:

自从发布我的答案后,链接到<一href="http://www.ebay.co.uk/itm/ws/eBayISAPI.dll?ViewItem&item=160653524585&ssPageName=STRK%3aMESE%3aIT#ht_520wt_1212" rel="nofollow">中引用的拍卖列表问题已更改。 现在完全不同的事情,不同的内容,不同的代码等等,在上面呈现我的评论已过时。

致OP:这是一种非常糟糕的做法,不仅这个问题和答案现在对未来的读者毫无用处,而且你完全浪费了我的时间。

看来OP是在我输入原始答案时编辑的,因此,没有原始问题的历史记录。 这是拍卖如我第一次回答时所示


编辑2:

根据eBay的HTML和JavaScript 政策

您不能使用 HTML 或 JavaScript:调用远程脚本和页面
自动,例如 JavaScript“包含” 或“iframe”。

You need to show your code. All the thumbail images are missing.

The console gives a 404 errors on them...

Failed to load resource: the server responded with a status of 404
(Not Found) adventures_thumb.jpg

Failed to load resource: the server responded with a status of 404
(Not Found) stephens_thumb.jpg

Failed to load resource: the server responded with a status of 404
(Not Found) residential_thumb.jpg

Failed to load resource: the server responded with a status of 404
(Not Found) autism_thumb.jpg

Failed to load resource: the server responded with a status of 404
(Not Found) spiritual_thumb.jpg

You are also getting a bunch of similar errors. It appears like you are using relative paths within your script so it's looking for these things within a directory on eBay. I assume you are hosting these components yourself so you need to use full, absolute paths including the http://yourServer.com/yourPath/ on everything, all of your referenced assets.

(As a side-note, AFAIK, I thought eBay did not allow any scripts within their auction listings.)


EDIT:

Since posting my answer, the link to the auction listing referenced in the question has been changed. It's now a whole different thing, different content, different code, etc., rendering my comments above obsolete.

To the OP: This is a very bad practice, not only is this question and answer now useless to future readers, you've totally wasted my time.

It appears that the OP was edited while I was typing my original answer, therefore, there is no history of the original question. This is the auction as presented when I first answered.


EDIT 2:

As per eBay's HTML & JavaScript policy

You can’t use HTML or JavaScript that: Calls remote scripts and pages
automatically, such as JavaScript "includes" or "iframes."

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