Re: Drop down menus
by "Anon Ymous" <anonymus13(at)hotmail.com>
|
Date: |
Tue, 07 Mar 2000 09:47:26 PST |
To: |
deevin(at)mun.ca |
Cc: |
hwg-techniques(at)hwg.org |
|
todo: View
Thread,
Original
|
|
>By now, everyone has seen the drop-down JavaScript menus that take you to
>another page when you click the 'go' button. What I need is a dropdown menu
>that will take you to different sections on the same page. I know this can
>be done with anchor tags, but is there any way to do it with anchor tags in
>JavaScript? I tried hacking the script I had for drop-down menus, but
>couldn't get it to work. Can anyone out there help with this?
I tried this and it works.
On your page you need to mark the places to which you want to jump with <A
Name="foo1"> <A Name="foo2"> etc. To jump to those places, place this list
on the page. Select the place to which you want to jump and click, "Send
me."
<form>
<select name="list">
<option selected value="#foo1">
links
<option selected value="#foo2">
top
<option selected value>
- Select A Site -
</select>
<input type=button value="Send Me!"
onClick="top.location.href=this.form.list.options[this.form.list.selectedIndex].value">
</form>
Hope this helps
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA