[advanced search]
Results from the most recent live auction are here.
12 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 12-01-2002, 10:48 PM   · #1
deadserious
Senior Member
 
Trader Rating: (13)
Join Date: Aug 2002
Posts: 1,300
NP$: 2.85 (Donate)
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
Simple JavaScript pull down quick menu

Code:
<SCRIPT LANGUAGE="JavaScript"> <!-- function which(form) { var order=form.jump.selectedIndex if (form.jump.options[order].value != 0) { location=form.jump.options[order].value; } } //--> </SCRIPT> <form name=form1> <select name=jump onchange=which(this.form)> <option value=0 selected>Quick Menu</option> <option value="page1.html">Page 1</option> <option value="Page2.html">Page 2</option> <option value="Page3.html">Page 3</option> </select> </form>




Please register or log-in into NamePros to hide ads
deadserious is offline   Reply With Quote
Old 02-02-2004, 04:43 PM   · #2
courtney.
New Member
 
Trader Rating: (0)
Join Date: Oct 2003
Posts: 11
NP$: 20.00 (Donate)
courtney. is an unknown quantity at this point
What would I change to make each Page open in it's own browser window. Example click on Page 1 and it open's it's own window, then click on Page 2 and then it will open up a different window?
Thanks for your help!
__________________
Treat others as you would wish them to treat you.
courtney. is offline   Reply With Quote
Old 02-03-2004, 11:49 PM   · #3
deadserious
Senior Member
 
Trader Rating: (13)
Join Date: Aug 2002
Posts: 1,300
NP$: 2.85 (Donate)
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
This should work for what you're wanting to do.

<form name=form1>
<select name=jump onchange=window.open(document.form1.jump.options[document.form1.jump.selectedIndex].value)>
<option value="page1.html">page 1</option>
<option value="page2.html">page 2</option>
<option value="page3.html">page 3</option>
</select>
</form>


deadserious is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
Arcade Script NameChatter Proof is in the Parking
Advertise your business at NamePros
All times are GMT -7. The time now is 06:48 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0