View Full Version : drop down menu?


wiccabrat
02-10-2003, 12:30 PM
Ok, what am I doing wrong? they wont work!!!

This is the code I'm using (one of them)

<form name="gotolocation1" method="POST">
<select name="BratzMenu" size=1
style="font-family: Metal Lord"
style="color: #000000"
style="border: outset"
style="font-size: 14"
style="background: #840000">
<option value="http://www.hometown.aol.com/wiccabrat911/index.html">Index</option>
<option value="http://www.hometown.aol.com/wiccabrat911/page2.html">Links</option>
<option value="http://www.hometown.aol.com/wiccabrat911/page22.html">The Exchange</option>
</select>
<input type="button" style="font-family: Metal Lord"
style="color: #000000"
style="font-size: 12"
style="background: #840000" onClick="location =
document.gotolocation1.BratzMenu.options
[document.gotolocation1.BratzMenu.selectedIndex].value;"
value="Go">
</form>

Sheila
02-10-2003, 01:18 PM
I don't see anything wrong with your code.

I copied and pasted the code you posted above and it works right for me.

wiccabrat
02-10-2003, 01:34 PM
ok now I'm really confused....... it wont work on my site, the box is there but the go button doesn't go!!! lol

Sheila
02-10-2003, 01:36 PM
Can you post the url to the site the drop down menu is on?

wiccabrat
02-10-2003, 01:42 PM
I only have it on some pages so far..... but here's one

www.hometown.aol.com/wiccabrat911/page15.html

Sheila
02-10-2003, 01:58 PM
It took me awhile but I figured it out. :lol:

When you have more than one drop down menu you have to use different names........for example:

<form name="gotolocation2" method="POST">
<select name="BratzMenu2" size=1
style="font-family: Metal Lord"
style="color: #FF99CC"
style="border: outset"
style="font-size: 14"
style="background: #CC0033">
<option value="http://www.hometown.aol.com/wiccabrat911/index.html">Index</option>
<option value="http://www.hometown.aol.com/wiccabrat911/page2.html">Links</option>
<option value="http://www.hometown.aol.com/wiccabrat911/page22.html">The Exchange</option>
</select>
<input type="button" style="font-family: Metal Lord"
style="color: #FF99CC"
style="font-size: 12"
style="background: #CC0033" onClick="location =
document.gotolocation2.BratzMenu2.options
[document.gotolocation2.BratzMenu2.selectedIndex].value;"
value="Go">
</form>

wiccabrat
02-10-2003, 02:07 PM
OMG!!! Thank you so much!!!!
That makes sense, lol
I'm new at all this code stuff, and learning slowly!! Thanks again.

Sheila
02-10-2003, 02:08 PM
Welcome :D