Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DropDown/PopUp Type Submenus

Status
Not open for further replies.

RussOSU

Technical User
Apr 16, 2001
93
US
Can anyone help me with the javascript required to make a pull down menu which is located to the right of the button. I am a newbie to javascript so a very detailed description would be helpful in me learning this whole javascript stuff. I know that there are 2 different ways of writing the script one in a seperate file(advantages?) and just sticking the script into the html file. Please help.

Thanks

Russ
 
Well, the advantage to sticking the script in a separate file is the fact that you can reuse it on several pages if you want, and it makes your page seem a little less cluttered.

As far as making something appear to the right of a button, that all just depends on where you put the code... if I'm understanding your question correctly...

<input type=button value=theButton>
<select name=theSelect>
<option value=1 selected>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
</select>

and so on until you have all your desired options. In the above example, a button would appear to the left of the dropdown box.

Did this help, or did I miss your point?

:)
Paul Prewett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top