 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
AmyR9

Joined: 14 Sep 2008 Posts: 79
|
Posted: Mon Oct 06, 2008 12:47 pm It wont go to the sites |
|
|
|
I'm trying to add my links in a pull down menu.
I've got them in a pull down menu, but when you click, it wont take me to the pages I have.
Here is the page http://www.geocities.com/amytvfan99/pulldowntest.html
The code I have so far. I guess there must be something I need to add to the code, but not sure what and where exactly.
<center>
<select size="1">
<option><a href="http://www.geocities.com/amytvfan99/theduggars.html">The Duggars</a><br>
<option><a href="http://www.geocities.com/amytvfan99/thegosselins.html">The Gosselins</a><br>
<option><a href="http://www.geocities.com/amytvfan99/theroloffs.html">The Roloffs</a><br>
</select>
</center> |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1391 Location: Biloxi, MS
|
Posted: Mon Oct 06, 2008 5:51 pm |
|
|
|
Haven't checked in depth, but <option> tag must be closed: </option>
Additional coding must be added to get the "on select" function to work. Example:
| Code: |
<form name="jump1" action="select">
<p>
<select name="MyList" OnChange="location.href=jump1.MyList.options[selectedIndex].value">
<option selected>Please Select...</option>
<option value="index.html">My Home Page</option>
<option value="http://www.crystalfibers.com/">Crystalfibers.com</option>
<option value="http://PayneLessDesigns.com/">PayneLessDesigns.com</option>
<option value="http://answers.yahoo.com/">Yahoo!Answers</option>
</select>
</p>
</form> |
|
|
AmyR9

Joined: 14 Sep 2008 Posts: 79
|
Posted: Tue Oct 07, 2008 7:29 am Still not working |
|
|
|
This still doesn't seem to be working.
I've got this code down on the page now.
I must not be understanding something correctly on how to do the code.
<form name="jump1" action="select">
<p>
<select name="MyList" OnChange="location.href=jump1.MyList.options[selectedIndex].value">
<option selected>Please Select...</option>
<option value="http://www.geocities.com/amytvfan99/theduggars.html">The Duggars</option>
<option value="http://www.geocities.com/amytvfan99/thegosselins.html">The Gosselins</option>
<option value="http://www.geocities.com/amytvfan99/theroloffs.html">The Roloffs</option>
</select>
</p>
</form> |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1391 Location: Biloxi, MS
|
Posted: Tue Oct 07, 2008 1:31 pm |
|
|
|
| Just tried your code and it works fine for me. Do you have JavaScript turned off? |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|