Click to See Complete Forum and Search --> : Drop Down Menu


Brian
12-10-2002, 04:01 AM
How can I configure a drop-down/jump menu (all list items, except "Select Here", are internal links within one site) so the box always returns to the default "Select Here" after selection of, then return from, one of the url options. All I can get is the previously selected list item still showing - and that's not what I want.

I know Dreamweaver MX achieves the desired result with a "Select first item after URL change" function. But I don't have D'Weaver MX!

gil davis
12-10-2002, 05:35 AM
After the navigation line, add this:

document.formName.selectName.selectedIndex = 0;

Adjust the names to match your form.

Brian
12-10-2002, 07:29 AM
Many thanks for the response Gil., although I'm not quite sure where I should implant your recommended scripting.

If it is of any value, here is my coding for the (relevant <'tr'> string) of my menu box (The site exists only on my hdd to date).

Perhaps you could elucidate?
<tr>
<td width="397" align="left"><p align="left"><font size="1"><b>VIEW
MORE VEHICLE-SPECIFIC PRODUCTS UNDER THE FOLLOWING LISTS:-</b></font></td>
<td width="122" align="right"><p align="right"><font size="3"><select
name="SELECT VEHICLE" onchange="namosw_goto_byselect(this, 'self')"
style="font-family:'Times New Roman'; font-size:12px; color:yellow; background-color:rgb(0,68,0);">
<option selected>SELECT VEHICLE</option>
<option value="m_acseri.htm">&nbsp;Series Land Rover&nbsp;</option>
<option value="m_acrang.htm">&nbsp;Range Rover&nbsp;</option>
<option value="m_acdef.htm">&nbsp;Defender&nbsp;</option>
<option value="m_acdisc.htm">&nbsp;Discovery&nbsp;</option></select></font></p>
</td>
</tr>

As you may see, my interest lies in Land Rover vehicle and their associated products!
Thanks again =
Brian

gil davis
12-10-2002, 12:02 PM
<select ... onchange="namosw_goto_byselect(this, 'self');this.selectedIndex=0" ... >

Brian
12-12-2002, 08:38 AM
Gil
Mni tks for your much appreciated guidance. I now have the situation sorted.
Kind regards

Brian Varrall