Here below is a script that creates a hyperlink directing visitor to an address chosen at random from a list.
The following code is inserted between <HEAD> and </ HEAD> tags at the top of the page:
Url = new Array;
Url = "http://www.ccm.net/index.php3";
Url = "http://www. ccm.net/wifi";
Url = "http://www. ccm.net/php";
Url = "http://www. ccm.net/forum/";
Chooselink = Math.round(Math.random() * (Url.length+1));
Don't forget to insert the following code within <BODY> and </BODY>) tags in order to display the link :
<A Href="#" onClick=" Randomlink (); return(false)">Random link</A>
Published by hyts78
Latest update on January 30, 2010 at 05:40 AM by jak58.