1
我有兩個彈出式廣告代碼,它通過點擊我的WordPress網站上的任意位置運行,我想先運行一個腳本,然後在打開一個彈出式窗口後,再次點擊我想要打開第二個彈出式窗口。我如何在我的WordPress網站上做到這一點?下面是隱藏彈出式碼在WordPress上運行其他javascript後運行javascript
<script type="text/javascript">
var _pop = _pop || [];
_pop.push(['siteId', 1205741]);
_pop.push(['minBid', 0.000000]);
_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>
<script type="text/javascript">
var uid = '101325';
var wid = '215567';
</script>
<script type="text/javascript" src="http://cdn.popcash.net/pop.js"></script>
所以你要在一個特定的順序運行腳本? – colecmc