Forum Moderators: mack
I am trying to creat a drop down box like the one on [snip] I was just wondering if anyone could tell me where I can get the code from.
Ideally I would like the dropdown to contain 3 subject and also open up in a new page when the user clicks on go.
Thanks for your help in advance.
Richard
[edited by: brotherhood_of_LAN at 2:32 am (utc) on April 16, 2009]
[edit reason] Please review the terms of service and forum charter regarding URLs, thanks [/edit]
Please forgive me for my ignornace as I stated I am new to web designer and I am learning as I go along.
Thanks
I posted a url to the type of pull down menu it is one where I could have subject such as " business, category and a go button which will take the user to a specified page.
There are two fairly easy ways to do this, and a third with consequences.
The third first: you can copy or locate a free Javascript or server-side code to do this for you (Google: "jump menu") but the problem here is like someone who knows nothing about cars and is stuck by the side of the road with the hood open. When something goes wrong, you won't know how to fix it.
The first and easiest solution is to build a Javascript Jump Menu. Javascript is fairly easy to pick up, one resource to learn it: W3 Schools Javascript section [w3schools.com]
The consequence: If Javascript is disabled, it won't work, rendering those controls inaccessible to some users.
The second and more "solid" solution is the same thing, but so that your jump menu actually submits to a server-side program that does the "jumping." This eliminates the above problem, but now the issue is you have to learn how to create server side programming - not as scary as it sounds. W3 Schools PHP tutorials [w3schools.com]
The best solution: do both, and build your Javascript so that if it's not functioning, it defaults to the server side scripting to do the menu jump. But that's a topic for another day . . . explore the above, see where it leads you.