Login
·
Signup
Home
»
XtGem
»
Coding help
»
Help me on this template
» View post
Keyarn
Graham
I dont know what is wrong in my own it doesn work both in external again after i edited it
<script> function ads(){ var a=[ 'https://www.jumia.com/affiliate-program/banners/9/77/336x280.jpg', 'https://jumia.com/affiliate-program/banners/Jumia Nigeria/Womens Shoes/336X280.jpg', 'https://jumia.com/affiliate-program/banners/Jumia Nigeria/Extreme Home Makeover/336X280.jpg', 'http://jumia.co/nl-templates-kenya/Affiliates/Newsletter/GDN/NG/Baby%20%26%20Kids/336X280.jpg', 'https://www.jumia.com/affiliate-program/banners/9/77/336x280.jpg', 'http://jumia.co/nl-templates-kenya/Affiliates/Newsletter/GDN/NG/Baby%20%26%20Kids/336X280.jpg', 'https://jumia.com/affiliate-program/banners/Jumia Nigeria/Womens Shoes/336X280.jpg' ]; var b=Math.floor(Math.random()*(a.length)); return a[b];} var x = document.getElementsByClassName("foo"); 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="descr" style="background:url(/B/Bg/download.png)"><table cellspacing="0px"><td align="middle"><br/><a href="http://c.jumia.io/?a=31746&c=11&p=r&E=kkYNyk2M4sk%3d&ckmrdr=&utm_source=cake&utm_medium=affiliation&utm_campaign=31746&utm_term="><img src="'+ads()+'" width="300" height="50" alt="" /></a></td></table></div><hr style="border:1px dotted red;"/>\</b\>\</div\>'; x[z].innerHTML = '\<div class=\"ad\"\>\<b\><div class="descr" style="background:url(/B/Bg/download.png)"><table cellspacing="0px"><td align="middle"><br/><a href="http://c.jumia.io/?a=31746&c=11&p=r&E=kkYNyk2M4sk%3d&ckmrdr=&utm_source=cake&utm_medium=affiliation&utm_campaign=31746&utm_term="><img src="'+ads()+'"></a></td></tr></table></div><hr style="border:1px dotted red;"/>\</b\>\</div\>'; </script>
plz try it and tell me if it work 4 u am in need of it
#
2017-04-26 07:10 ·
(0)
Home
»
XtGem
»
Coding help
»
Help me on this template
» View post
Online: Guests: 1
Log in