Solved

drop down menus

Posted on 2003-11-08
6
345 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
while loop in html mail format 5 59
Issue in webpage 6 34
Why is this panel heading creating extra space 2 36
Bootstrap on PLNKR 3 14
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now