Loans | Sunglasses | Credit Card | How to Camp Out | Loans
HTML Help. [Archive] - PCMech Forums

PDA

View Full Version : HTML Help.


icallmedan
03-14-2003, 09:55 PM
How do you program drop-down menus in HTML. I am just starting to learn HTML, and do different things with it. I am now wondering how to do drop-down menus. Thanks.

mairving
03-15-2003, 08:16 AM
Pretty easy to do with a select statement:
<Select name="forum">
<Option>PC Mech</Option>
<Option>None</Option>
</Select>

which would yield this:
<select name="forum">
<option>PC Mech</option>
<option>None</option>
</select>

Now that is pretty basic. You might want to have a option selected value, which makes that one show first in the select list. Also you would generally specify values for the variables.

icallmedan
03-15-2003, 10:49 AM
How would you go about integrating links into that say to another site or another aprt of your site. Would you just use the <a href=pcmech.com>PC Mech</a> or would you do something different...?

icallmedan
03-15-2003, 10:50 AM
I shouldn't have enabled HTML, but would you just use the HTML link code after the "option"?

aym
03-15-2003, 01:04 PM
You need to use JavaScript, here is a good tutorial:
http://members.aol.com/grassblad/html/selMenu.html