JavaScript Source Code 3000: Navigation: Pulldown Menu (Frames)
Pulldown Menu (Frames)
If you would like to use a pulldown menu, but would like to do so in frames, this is the script for you. One frame will contain the pulldown menu and the selections will be opened in the other frames!
'mixed' version of this script that allows each menuoption to individually load in the other frame or in its own popup menu.
JavaScript Source Code 3000: Navigation: Pulldown Menu Frameset
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!
JavaScript Source Code 3000: Navigation: Pulldown Menu (Frames)
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!
<!-- THREE STEPS TO INSTALL PULLDOWN MENU (FRAMES):
1. Put this code in the HEAD of your pulldown menu HTML document
2. Add the last code into the BODY of your pulldown menu HTML document
3. Put whatever you want in the HTML document (rightframe.html) -->
<!-- STEP ONE: Put this in the HEAD of your menu HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<! >
<! >
<!-- Begin
function leapto(form) {
var myindex=form.dest.selectedIndex;
parent.right.location.href=(form.dest.options[myindex].value);
myindex = 0; // reset pulldown menu
}
// End -->
</SCRIPT>
<!-- STEP TWO: Put this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<FORM NAME="myform">
<SELECT NAME="dest" SIZE=1>
<OPTION SELECTED VALUE="http://javascriptsource.com">JavaScript Source Code 3000
<OPTION VALUE="http://buttons.javascriptsource.com">Buttons Page
<OPTION VALUE="http://games.javascriptsource.com">Games Page
<OPTION VALUE="http://links.javascriptsource.com">Links Page
<OPTION VALUE="http://passwords.javascriptsource.com">Password Protection Page
<OPTION VALUE="http://user-details.javascriptsource.com">User Details Pages
</SELECT>
<INPUT TYPE="BUTTON" VALUE="Go" onClick="leapto(this.form)">
</FORM>
</CENTER>
<!-- STEP THREE: Put anything in other HTML document (rightframe.html) -->
<!-- Script Size: 1.44 KB -->
Wyszukiwarka
Podobne podstrony:
mixed menu framespass menu frameschange 2 frames menu sourcepu srvc menu nlmenu cwiczenia14menuwięcej podobnych podstron