View Full Version : java question
Anyone know of a java script that will rotate places to send exit traffic?
I basically want to send exit to different places randomly.
icq 96944056.
Thanks!
Kong
Cyber-Fantasy
03-27-2001, 12:24 AM
var howMany = 2; // max number of items listed below
var page = new Array(howMany+1);
page[0]="http://domain.com/page1.htm";
page[1]="http://domain2.com/page1.htm";
page[2]="http://domain2.com/page2.htm";
function rndnumber(){
var randscript = -1;
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
quo = rndnumber();
quox = page[quo];
window.location=(quox);
// End -->
hope that helps
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.