View Single Post
Old 09-27-2015, 07:37 PM  
cam_girls
So Fucking Banned
 
Industry Role:
Join Date: Apr 2009
Posts: 2,968
Banner Randomizer that WORKS!

AVOID RAND(1,100) when using Server Side scripting...

N.S.A. favourite trick to put Context Sensitive Banners all over your site!





<script>

function changepic()
{
bannerrandomizer()
msg = msg + p + ' '
document.getElementById('msgbox').innerHTML = msg
}

function runtimer()
{
changepic()
tid = setTimeout('runtimer()',500)
}

function bannerrandomizer()
{
p = (p + i) % 75
t = (t + 1) % 5
if (t == 0) { i++ }
}


p = parseInt(Math.random()*4)*10
i = parseInt(Math.random()*4)*10 + 1
t = 1
msg = "START " + p + ":" + i + " "
tid = setTimeout('runtimer()',1500)

</script>





<div id='msgbox'>LOADING BANNER SIM....</div>


Check out the DETERMISTIC random sequence here!

http://camaffiliate.com/BannerRandomizer.html
cam_girls is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote