There is a variable within my .js file that is labeled: var url="http://mywebsite.com/control.php"; Code (markup): and need a simple rotation within the javascript file so that it will go to numerous websites. Like this: var url="http://mywebsite.com/control.php"; var2 url="http://mywebsite2.com/control.php"; var3 url="http://mywebsite3.com/control.php"; Code (markup): Immediate payment: $10
ok this is the code var url = new Array; url[0] = "http://mywebsite.com/control.php"; url[1] ="http://mywebsite2.com/control.php"; url[2] ="http://mywebsite3.com/control.php"; var randomnumber=Math.floor(Math.random()*url.length) Code (markup): then to use the url you simply use url[randomnumber] Code (markup):
Hmmm...thanks for the info, but for some reason, doesn't seem to work within my .js file. I am PMing you.