Click to See Complete Forum and Search --> : Dropdown Menu


whiteybags
06-23-2006, 09:31 AM
Hi,
I've searched the forums but can't locate what I'm after. Its quite simple but I'm very much out of practice here.

I have created a simple drop down menu as follows:

<select size="1" name="Photos">
<option selected value="Photo 101">July 17th - Photo 101 - 120</option>
<option value="Photo 111">July 17th - Photo 111 - 120</option>
<option value="Photo 121">July 17th - Photo 121 - 130</option>
</select>

As you can see I have 3 options and the 1st is selected.

What I want to happen is:
When the user chooses one of the options I want it to jump to a new page according to what has been choosen.

If you could send me in the direction of a tutorial or give help in anyway it would be much appreciated.

I hope I'm making sense.
Thanks,
Whiteybags

MstrBob
06-23-2006, 10:42 AM
Well, what you are proposing here requires a bit of Javascripting. Now, I don't recommend this method at all. The problem being that anyone without Javascript (be they disabled persons, people who have turned it off, search engines, portable browsers, ect.) won't be able to navigate your website.

I would point you towards the Suckerfish (http://www.alistapart.com/articles/dropdowns) menus. Though you can add some javascript to get your incorrect use of the Option element functional, the Suckerfish menu works infinitely better, and also is a lot more appealing visually.