VYBRATIE POLOZKY

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

 

065
p065.html / p065.zip
Po vybrati polozky z pull-down menu, presmeruje na stranku bez nutnosti kliknutia
1141b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <HEAD> <TITLE> JavaScript DESTINATION - P065 </TITLE> <SCRIPT LANGUAGE = "JavaScript"> <!-- function MakeArray() { this.length = MakeArray.arguments.length for (var i = 0; i < this.length; i++) this[i+1] = MakeArray.arguments[i] } var url = new MakeArray("", "http://www.pavucina.sk", "http://www.javascript.sk", "http://www.isternet.sk/netacik", "http://www.r-net.sk", "http://www.superzoznam.sk"); function jumpPage(form) { i = form.SelectMenu.selectedIndex; if (i == 0) return; window.location.href = url[i+1]; } // --> </SCRIPT> </HEAD> <BODY> <FORM> <TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0> <TR><TD> Jednoduche vyberova menu </TD></TR><TR><TD> <SELECT NAME="SelectMenu" onChange="jumpPage(this.form)"> <OPTION>Vyber si stranku <OPTION>Casopis Pavucina <OPTION>JavaScript DESTINATION <OPTION>Casopis Netacik <OPTION>R-NET <OPTION>Superzoznam </SELECT> </TD></TR></TABLE> </FORM> </BODY> </HTML>
[ Navrat / BACK ]