Jump to content

Drop down menu links


CrazyJoe

Recommended Posts

Here is my code. and i was wondering how do i make links in a drop down menu?

<form size="1" height="1"/><select><optgroup label="Affilates"><option value="Purezc">Purezc</option><option value="Myspace">Myspace</option><option value="Photobucket">Photobucket</option></select></form>

Link to comment
Share on other sites

<form size="1" height="1"/><select><optgroup label="Affilates"><option value="http://your url.com" onclick="window.location=this.value;">Purezc</option><option value="Myspace">Myspace</option><option value="Photobucket">Photobucket</option></select></form>See what I did with your "Purezc" option? :)

Link to comment
Share on other sites

With slightly less code, you can use:

<select onchange="location.href = this.value;">  <option value="http://www.w3schools.com">W3 Schools</option>  <option value="http://www.google.com">Google</option></select>

Link to comment
Share on other sites

With slightly less code, you can use:
<select onchange="location.href = this.value;">  <option value="http://www.w3schools.com">W3 Schools</option>  <option value="http://www.google.com">Google</option></select>

How can I make it that this has a default value for example "list1" like if it's a button. Witch makes me ask the next question how do I make the arrow on the right dissapear?Ruud Hermans
Link to comment
Share on other sites

Witch makes me ask the next question how do I make the arrow on the right dissapear?
You can't make it disapear, it's a browser feature when you use the <select> tag.You can create similar menu's using other techniques: http://www.w3schools.com/dhtml/tryit.asp?f...trydhtml_menu10
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...