|
|
|
|
|
|
|
The script goes in the head of the doc: |
|
<html><head><title>Webwork / JavaScript / Pull-Down Nav Menu</title> <script language="javascript" type="text/javascript"> <!-- function autonavdemo() { if (document.navdemo.destination.options[document.navdemo.destination.selectedIndex].value) { top.location = document.navdemo.destination.options[document.navdemo.destination.selectedIndex].value } } //--> </script> </head> |
|
And this goes where the pull-down nav element should appear on the page: |
|
<<form name="navdemo" method="post" action="http://www.playboy.com/cgi/channels.cgi"> <select name="destination" onchange="autonavdemo()"> <option value="">Select a topic</option> <option value="index.html">JavaScript Index Page</option> <option value="statusbar.html">OnMouseOver Status Bar Message</option> <option value="imagerollover.html">OnMouseOver Image Changes</option> <option value="popupwindow.html">Popup Window</option> <option value="back1page.html">Back one page</option> </select> </form> |