Random Link

Example
A random link
In the <HEAD> of the page place the following (modifying the links as appropriate!):
<script language="JavaScript">

var links = new Array(10)
links[0] = "a.asp"
links[1] = "aa.asp"
links[2] = "ba.asp"
links[3] = "ab.asp"
links[4] = "bh.asp"
links[5] = "bd.asp"
links[6] = "f.asp"
links[7] = "h.asp"
links[8] = "i.asp"
links[9] = "ai.asp"
function go() {
	var a = Math.random() + ""
	var i = a.charAt(5)
	location = links[i]
}
</script>
Then add the folowing where you want your random link:
<a href="javascript:go()">A random link</a>





Back To Top
© 1998 - 2017 psacake.com | My3C's

Version 7.2 | Advertise on this site