Wells-it.com - Web Hosting

Creating a Menu Option That's Also a Link

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

He has: 3 posts

Joined: Oct 2006

I took a course on HTML about 5-6 years ago, hardly used it after I had taken it. But now I am trying to create a website where on the first page you have to choose a state from a drop down menu and then the next page would be another drop down menu with a list of towns in the respective state. I've tried , placed it everywhere with in other tags, before and after it, before and after it. I just can't get the states to come up in the drop down menu as links. Any suggestions would be greatly appreciated.

timjpriebe's picture
DeveloperModeratorSponsor

He has: 2,666 posts

Joined: Dec 2004

It turns out it's actually not that simple. You'll actually need to employ a little scripting, one way or another.

If you're going with Javascript, you may be able to use this to generate what you're looking for. I used it many years ago and it worked fine for what you're talking about.

http://javascript.internet.com/generators/drop-down-menu.html

He has: 3 posts

Joined: Oct 2006

Thanks timjpriebe. The site to the java script generator made the solution quick and easy. Great advice. Thanks again.

-title1ted

They have: 32 posts

Joined: Oct 2006

hi t1t
keep in mind that links in javascript menus cannot be spidered by search engines. For that, you need a combination of css and html.

He has: 3 posts

Joined: Oct 2006

how do I create a drop down menu where the selected item links to another page using a combonation of CSS and HTML? I appreciate the input.

-title1ted