|
Menus and Navigation >>>
This Javascript will display an ordinary-looking menu . Once a link is selected, the visitor is automatically taken to the website without hitting "Go!" or anything.
Add the below code to the <body> section of your page:
<script
language="javascript"
type="text/javascript">
function
formHandler(form){
var
URL
=
document.form.site.options[document.form.site.selectedIndex].value;
window.location.href
=
URL;
}
</script>
<form
name="form">
<select
name="site"
size=1
onChange="javascript:formHandler()">
<option
value="">Go
to....
<option
value="http://www.yahoo.com">Yahoo
<option
value="http://www.metacrawler.com">Metacrawler
<option
value="http://www.altavista.digital.com">Altavista
<option
value="http://www.webcrawler.com">Webcrawler
<option
value="http://www.lycos.com">Lycos
<option
value="http://www.yaldex.com/JSFactory_Pro.htm">JavaScript
Editor
</select>
</form>
|
|