NAHODNY ODKAZ

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

087
p087.html / p087.zip
Vygenerovanie nahodneho odkazu
782b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P087 </title> <script language="JavaScript"> <!-- var links = new Array(10) links[0] = "http://www.pavucina.sk" links[1] = "http://www.isternet.sk" links[2] = "http://www.r-net.sk" links[3] = "http://www.javascript.sk" links[4] = "http://www.eurotel.sk" links[5] = "http://www.sn.sinet.sk" links[6] = "http://www.ke.sanet.sk/jury/" links[7] = "http://www.sanet.sk" links[8] = "http://www.dodo.sk" links[9] = "http://www.humor.sk" function go() { var a = Math.random() + "" var i = a.charAt(5) location = links[i] } // --> </script> </head> <body bgcolor="#FFFFFF"> <a href="javascript:go()">Nahodny odkaz</a> <br> <form><input type="button" value="Nahodny odkaz" onClick="go()"></form> </body> </html>
[ Navrat / BACK ]