October 7th, 2002, 08:37 PM
|
#3 (permalink)
|
| Senior Member
Join Date: Oct 2001 Location: Alberta, Canada
Posts: 563
|
too damm bad!!!
lol  , jk... here's what I came up with, not the best, but seems to work... Code: <script language=javascript>
//Variable for random number.
var i;
//Array for links.
var arLinks = new Array();
//Change links to what you wish... and however many you want*...
// *Just be sure to increment the array element if you add more.
arLinks[0] = "http://www.techimo.com";
arLinks[1] = "http://www.google.ca";
arLinks[2] = "http://www.metacrawler.com";
arLinks[3] = "http://www.crucial.com";
//Create random number, based on number of elements in array.
i = Math.floor( Math.random() * arLinks.length );
//Redirect
window.location = arLinks[i];
</script>
btw, that link is for perl, thought you wanted javascript??
ciao!! |
| |