HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
It wont go to the sites
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
AmyR9



Joined: 14 Sep 2008
Posts: 79

PostPosted: Mon Oct 06, 2008 12:47 pm     It wont go to the sites Reply with quote

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: 1288
Location: Biloxi, MS

PostPosted: Mon Oct 06, 2008 5:51 pm     Reply with quote

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

PostPosted: Tue Oct 07, 2008 7:29 am     Still not working Reply with quote

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: 1288
Location: Biloxi, MS

PostPosted: Tue Oct 07, 2008 1:31 pm     Reply with quote

Just tried your code and it works fine for me. Do you have JavaScript turned off?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial