Login
·
Signup
Home
»
XtGem
»
Coding help
»
Help me on this template
» View post
Keyarn
Graham
Sir i hosted this script in a file name Ads.js
var x = document.getElementsByClassName("ads_pop_in"); var y = Math.floor(Math.random() * x.length); var z = Math.floor(Math.random() * x.length); x[y].innerHTML = '\<div class=\"ad\"\>\<b\><div class="full" style="background:url(/B/Bg/download.png)"><table cellspacing="0px"><tr align="middle"><td align="left"><img src="http://keyarn.xtgem.com/admin/Icons/ad.png" alt="**" class="ico" width="27px" height="30px" /></td><td align="left"><img src="http://keyarn.xtgem.com/Admin/rating.gif" /><br/><a href="http://wap4dollar.com/ad/serve.php?id=9zxsoiy497"><img src="http://wap4dollar.com/ad/imgs/wap4dollar_banner_6.jpg" width="300" height="50" alt="" /></a></td></tr></table></div><hr style="border:1px dotted red;"/>\</b\>\</div\>'; x[z].innerHTML = '\<div class=\"ad\"\>\<b\><div class="full" style="background:url(/B/Bg/download.png)"><table cellspacing="0px"><tr align="middle"><td align="left"><img src="http://keyarn.xtgem.com/admin/Icons/ad.png" alt="**" class="ico" width="27px" height="30px" /></td><td align="left"><img src="http://keyarn.xtgem.com/admin/rating.gif" /><br/><a href="http://wap4dollar.com/ad/serve.php?id=9zxsoiy497"><img src="http://wap4dollar.com/ad/imgs/wap4dollar_banner_3.jpg" alt="" /></a></td></tr></table></div><hr style="border:1px dotted red;"/>\</b\>\</div\>';
and then try to <script src="/Ads.js"> to show it where i want but it is not working else i paste it Externally plz do you know why?
#
2017-04-25 02:03 ·
(0)
Home
»
XtGem
»
Coding help
»
Help me on this template
» View post
Online: Guests: 1
Log in