![]() |
Help with Java script
I am trying to write a script to redirect traffic to a random url selected from a list of urls. So far, I have had no luck. :( I don't know a lot about writing scripts. Anyone have a good script for this? TIA
|
search some script sites, there are loads of free scripts that do that..
|
haven't tested it though something like below should be fairly close to working.
sites=Array("url1","url2","...."); window.location=sites[math.round(math.random())*sites.length] |
Quote:
|
Quote:
|
Quote:
|
sites[Math.round(Math.random()*(sites.length-1))]
|
Quote:
|
All times are GMT -7. The time now is 05:53 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123