SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Drop down box script
-
Jul 30, 2000, 12:11 #1
- Join Date
- May 2000
- Location
- Victoria, Australia
- Posts
- 1,661
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
I'm after a script that will send a person right to the link they have selected in a drop down box without having to click a go bottom.
Thanx in advance
-
Jul 30, 2000, 12:33 #2
- Join Date
- Jan 2000
- Location
- Scotland
- Posts
- 660
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
<form name="QuickIndex">
<div align="center">
<select size=1 name="select" onChange="if(options[selectedIndex].value) top.location.href=(options[selectedIndex].value)">
<option>Select a Section</option>
<option>------------------------------------------</option>
<option value="http://www.theurl.com">Text</option>
<option value="http://www.theurl.com/1.htm">2nd Text</option>
</select>
</div>
<noscript> </noscript>
</form>
Add or remove <option> </option> as required.
Hope this has helped.
------------------
Methven Online - The Original Methven
Subtle Measures - Celtic Rock in the Heart of Scotland
SaltireDigital - Scotland's Internet Radio Station
-
Jul 30, 2000, 16:26 #3
- Join Date
- Jun 2000
- Location
- Tucson, AZ, USA
- Posts
- 164
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I may use this script as well, but I have one problem. I want to use it on a site that has a frame on the bottom http://www.aisle-nine.com . Is there a tag that I can add to the above script so that when a link is chosen it doesn't kill the frame? If so where would it be placed? I tried adding <param NAME="target" VALUE="_top"> (this is what I used on a Java applet drop down menu), but it doesn't work.
Thanks,
------------------
Bob Messinger
Bob@associate-trackers.com
http://www.associate-trackers.com
-
Jul 30, 2000, 17:33 #4
- Join Date
- Aug 1999
- Location
- Pittsburgh, PA, USA
- Posts
- 3,910
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Checkout this automatic generator on DynamicDrive.com:
http://www.dynamicdrive.com/dynamici...pmenuindex.htm
Pretty handy for quick menus.
*** EDIT NOTICE ***
My mistake, I thought that was something else!
*** EDIT NOTICE ***
------------------
Chris Bowyer – chris@mycoding.com
MyCoding.com: Visit for Launch Notification!
DomainMailings.com: Who Says All The Good Ones Are Taken?
MovieForums.com: Talk About Your Favorite Flicks!
[This message has been edited by TWTCommish (edited July 30, 2000).]
-
Jul 30, 2000, 18:42 #5
- Join Date
- Jul 2000
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
i would recommend checking out this site... http://javascript.internet.com/navigation/
they've got some nifty little javascript pulldown menus.
they even have ones for frames sites...
-
Jul 30, 2000, 19:10 #6
- Join Date
- Jun 2000
- Location
- Tucson, AZ, USA
- Posts
- 164
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well thanks for trying Chris!
Thanks for the link corrupt! I found just the menu I was looking for.
Bookmarks