我有一个popunder的脚本,但如果你点击网站上的任何地方,popunder就会打开。他们是这样做的,以避免AdBlocks阻止pound。所以现在问题是:有人可以帮助我将脚本编写为onload脚本。模拟点击不起作用。
这里是剧本:
<script type="text/javascript">
var _pop = _pop || [];
_pop.push(['siteId', 348021]);
_pop.push(['minBid', 0]);
_pop.push(['popundersPerIP', 0]);
_pop.push(['delayBetween', 0]);
_pop.push(['default', false]);
_pop.push(['defaultPerDay', 0]);
_pop.push(['topmostLayer', false]);
(function() {
var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
var s = document.getElementsByTagName('script')[0];
pa.src = '//c1.popads.net/pop.js';
pa.onerror = function() {
var sa = document.createElement('script'); sa.type = 'text/javascript'; sa.async = true;
sa.src = '//c2.popads.net/pop.js';
s.parentNode.insertBefore(sa, s);
};
s.parentNode.insertBefore(pa, s);
})();
</script>