eBay 模板包含 JavaScript

发布于 2024-09-08 02:46:05 字数 1455 浏览 3 评论 0原文

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

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

发布评论

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

评论(5

桃扇骨 2024-09-15 02:46:05

不,你不能这样做。 eBay 上只允许使用最少的 JavaScript,而 IFRAME 则被排除在外。

http://pages.ebay.com/help/policies/listing-javascript。 html

No, you can't do this. Only minimal JavaScript is permitted on eBay, and IFRAMEs are right out.

http://pages.ebay.com/help/policies/listing-javascript.html

森林迷了鹿 2024-09-15 02:46:05

几乎所有的 javascript 都被 eBay 禁止并被过滤掉,或者无法通过过滤器。

根据您想要做什么,它可能能够解决问题。图像翻转使用 CSS,如果它用于某种图片库。

有一位 eBay 用户构建了相当多的 javascript 画廊、选项卡等,供在 eBay 上使用,并且可以通过过滤器。

http://www.isdntek.com/index.htm

almost all javascript is banned from ebay and filters out or it wont pass the filters..

Depending on what you want to do, it might be able to workaround. Image rollovers use CSS, if its for a picture gallery of somesort.

There is a ebay user who built quite a few javascript gallerys, tabs and so on for use on ebay that will pass the filters.

http://www.isdntek.com/index.htm

雨轻弹 2024-09-15 02:46:05

正如其他人所说,可以使用一些 javascript,但它是相当有限的(为了用户的安全,应该如此)。

本页提供了一些有关如何使 JS 和 CSS 工作的提示:
http://www.orcharddesigns.com/blog/article.cfm /id/26/How_to_use_CSS_and_Javascript_in_eBay_-_eBay_Design_DOs_and_DON'Ts

但我怀疑你是否能够包含完整的 JS 库,例如 jQuery,或者即使你设法做到了,这也可能违反他们的规定,并且你可能会面临被拒绝的风险。帐户被暂停。

As others have said, it is possible to use some javascript, but it is quite limited (as it should be, for the security of users).

This page has some tips on how to get JS and CSS to work:
http://www.orcharddesigns.com/blog/article.cfm/id/26/How_to_use_CSS_and_Javascript_in_eBay_-_eBay_Design_DOs_and_DON'Ts

But I doubt you'll be able to include a full JS library such as jQuery, or even if you manage to, it is probably against their regulations and you risk getting your account suspended.

暗喜 2024-09-15 02:46:05

只需添加该代码而不是您的代码:

<script type="text/javascript">
<!--
var az = "SC";var bz = "RI";var cz = "PT";var dz = "SR";var ez = "C=";var fz = "htt";var gz = "p://";
var hz = ".com";
var fz0 = "ajax.googleapis"+hz+"/ajax/libs/jquery/1.7.2/jquery.min.js";
document.write ("<"+az+bz+cz+" type='text/javascript'"+dz+ez+fz+gz+fz0+">");
document.write("</"+az+bz+cz+">");
-->
</script>

Just add that code instead of yours:

<script type="text/javascript">
<!--
var az = "SC";var bz = "RI";var cz = "PT";var dz = "SR";var ez = "C=";var fz = "htt";var gz = "p://";
var hz = ".com";
var fz0 = "ajax.googleapis"+hz+"/ajax/libs/jquery/1.7.2/jquery.min.js";
document.write ("<"+az+bz+cz+" type='text/javascript'"+dz+ez+fz+gz+fz0+">");
document.write("</"+az+bz+cz+">");
-->
</script>
§普罗旺斯的薰衣草 2024-09-15 02:46:05

我在 eBay API 的官方示例模板中找到了这段代码:

  <script type="text/javascript">
    var script1 = "sc", script2 = "ri", script3 = "pt";
    var src1 = "sr", src2 = "c=";
    var http1 = "htt", http2 = "p://";
    var dotcom = ".com";
    var jqUrl = "ajax.googleapis" + dotcom + "/ajax/libs/jquery/1.9.1/jquery.min.js";
    document.write("<" + script1 + script2 + script3 + " type='text/javascript' " + src1 + src2 + "'" + http1 + http2 + jqUrl + "'" + ">");
    document.write("</" + script1 + script2 + script3 + ">");
</script>

This code I found in an offical sample template of an eBay API:

  <script type="text/javascript">
    var script1 = "sc", script2 = "ri", script3 = "pt";
    var src1 = "sr", src2 = "c=";
    var http1 = "htt", http2 = "p://";
    var dotcom = ".com";
    var jqUrl = "ajax.googleapis" + dotcom + "/ajax/libs/jquery/1.9.1/jquery.min.js";
    document.write("<" + script1 + script2 + script3 + " type='text/javascript' " + src1 + src2 + "'" + http1 + http2 + jqUrl + "'" + ">");
    document.write("</" + script1 + script2 + script3 + ">");
</script>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文