Quick Menu Javascript
Javascripts > Javascript Menus > Quick Menu
Script Title: Quick Menu
Description: This unique Go menu not only allows you to quickly select and navigate to a list of sites, but also, view an instant description of each site!
Example: Available
Copy the following code between the <BODY></BODY> tags of your html page.<form name="combowithtext">
<select name="example" size="1" onChange="showtext()">
<option value="http://www.free-backgrounds.com">Free-backgrounds.com</option>
<option value="http://www.dynamicdrive.com">Dynamic Drive</option>
<option value="http://www.reallybig.com">Reallybig.com</option>
<option value="http://www.wsabstract.com">Website Abstraction</option>
</select>
<input type="button" value="Go!" onClick="gothere()"><br>
<textarea rows=5 cols=21 wrap="virtual" name="text"></textarea>
<script language="javascript">
<!--
/*
Combo box with description credit-
By Website Abstraction (www.wsabstract.com)
and Java-scripts.net (www.java-scripts.net)
*/
var shortcut=document.combowithtext
var descriptions=new Array()
//extend this list if neccessary to accomodate more selections
descriptions[0]="Click here for hundreds of eye popping backgrounds!"
descriptions[1]="Ultra cool, free DHTML scripts for your site!"
descriptions[2]="The ultimate web builder network"
descriptions[3]="JavaScript tutorials and over 400+ free scripts..."
shortcut.text.value=descriptions[shortcut.example.selectedIndex]
function gothere(){
location=shortcut.example.options[shortcut.example.selectedIndex].value
}
function showtext(){
shortcut.text.value=descriptions[shortcut.example.selectedIndex]
}
//-->
</script>
</form>
© 2024 Javascripts
Now Viewing Quick Menu