Solved

drop down menus

Posted on 2003-11-08
6
347 Views
Last Modified: 2010-04-09
Hi I'm trying to implement Drop Down menus in my webpage. I have never done that can somebody point me to the resources or i appreciate any sample code

Thanks
0
Comment
Question by:soft_techy
6 Comments
 
LVL 5

Expert Comment

by:ho_alan
ID: 9708920
http://www.htmlcodetutorial.com/forms/_SELECT.html

<select name=sel1>
<option value=1>1
<option value=2>2
</select>

you want to implement which javascript functions or not?
0
 
LVL 31

Expert Comment

by:GwynforWeb
ID: 9709017
soft_techy,
   Here is a small example illustrating many of the features of the select box, eg such as the value does not have be the same as the displayed text for the selection, how the value of the selected option can be accessed, how a change of selection can be detected and how a 'NULL"' entry can be useful for seeing if an item has actually been selected. By default the first entry is the option shown you can choose one by using selected like so <option value="3" selected>Prof</option> which would show Prof as the initial selection.

<form method="get" name="f1" >
  <select name="sbox"  onchange="document.SeeValue.value=document.f1.sbox.value">
    <option value="NULL">Select Title</option>
    <option value="1">Ms</option>
    <option value="2">Dr</option>
    <option value="Prof">Prof</option>
  </select>
<input type="text" name="SeeValue">
</form>
0
 
LVL 31

Accepted Solution

by:
GwynforWeb earned 125 total points
ID: 9709025
I am sorry I posted the wrong version this is it (see if you can spot why the above does not work :-)  )

<form method="get" name="f1" >
  <select name="sbox"   onchange="document.f1.SeeValue.value=document.f1.sbox.value">
    <option value="NULL">Select Title</option>
    <option value="1">Ms</option>
    <option value="2">Dr</option>
    <option value="3">Prof</option>
  </select>
<input type="text" name="SeeValue">
</form>
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 31

Expert Comment

by:seanpowell
ID: 9710083
Here's a link to a drop-down menu that you can use - it's very simple to incorprate:
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm
0
 

Expert Comment

by:techiebabe
ID: 9732999
You can also try :
http://www.dhtmlcentral.com/ many examples and different menus (top menus, side menus)

http://www.webreference.com/dhtml/
but these are not free...dpending on what your purpose is, there may be a fee, but i will admit, they do offer great support, and code updates on a regular basis.
0
 
LVL 2

Expert Comment

by:mailBoy2
ID: 9738144
I find looking at other sites a good way to learn - if they do something you like you can view the source of the page (right mouse click on hte html page then click View Source).
This way if you like something you can copy the whole page source and rip out the bits you like. Of course this is just a good way to get ideas / examples of how do stuff.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question