JavaScript Drop Down Menu with automatic redirect
|
|
Written by Web Hosting Editor
|
|
Wednesday, 16 January 2008 |
|
This is a simple java drop down menu which is great to simplify your sites navigation
Below you can find an example of a simple Java drop down menu
Place this code where you would like the box to appear.
<p><Script language="JavaScript">
<!-- Script courtesy of http://www.ausweb.com.au
function goto(form) { var index=form.select.selectedIndex
if (form.select.options[index].value != "0") {
location=form.select.options[index].value;}}
//-->
</SCRIPT>
<FORM NAME="form1">
<SELECT NAME="select" ONCHANGE="goto(this.form)" SIZE="1">
<OPTION VALUE="">-------Choose a Selection-------</OPTION>
<OPTION VALUE="http://ausweb.com.au/host1.html">cPanel Hosting</OPTION>
<OPTION VALUE="http://ausweb.com.au/host4.htm">Reseller Hosting</OPTION>
<OPTION VALUE="http://ausweb.com.au/host3.html">eCommerce Hosting</OPTION>
<OPTION VALUE="http://ausweb.com.au">Web Hosting in Australia</OPTION>
<OPTION VALUE="http://www.ausweb.com.au/html/dedicated-servers">Dedicated
Server</OPTION>
<OPTION VALUE="http://domains.ausweb.com.au/">Domain Names</SELECT>
</FORM> </p> |