This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
不,你不能这样做。 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
几乎所有的 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.
正如其他人所说,可以使用一些 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.
只需添加该代码而不是您的代码:
<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:
我在 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:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(5)
不,你不能这样做。 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
几乎所有的 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
正如其他人所说,可以使用一些 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.
只需添加该代码而不是您的代码:
Just add that code instead of yours:
我在 eBay API 的官方示例模板中找到了这段代码:
This code I found in an offical sample template of an eBay API: