creating links in dropdown boxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a dropdown box to use for navigation and just add links
to each option to certain anchor points on the page. Only I cant figure how
you add links inside the dropdown box so when a user clicks on an option is
follows the link. Thanks for any help you can givel.
Bill
 
Try this..

<form>
<select onchange="if(this.selectedIndex > 0 ) location.href='http://' +
this.options[this.selectedIndex].value">
<option>Select link</option>
<option value="www.microsoft.com">Microsoft</option>
<option value="msdn.microsoft.com">MSDN</option>
</select>
</form>

HTH
Don
===================
|I am trying to create a dropdown box to use for navigation and just add
links
| to each option to certain anchor points on the page. Only I cant figure
how
| you add links inside the dropdown box so when a user clicks on an option
is
| follows the link. Thanks for any help you can givel.
| Bill
 
Ooops

After reading closer....

The key word is "Bookmarks"

1.. In Page view, at the bottom of the document window, click Design .
2.. Select the text to which you want to assign a bookmark .).
3.. On the Insert menu, click Bookmark.
4.. Under Bookmark name, type or select the name of the bookmark (spaces
are allowed).

You can then link to the "bookmark"
When adding the hyperlink look for the bookmark button...

Sorry for the confusion on my part...

Don
__________________
==================
| Try this..
|
| <form>
| <select onchange="if(this.selectedIndex > 0 ) location.href='http://' +
| this.options[this.selectedIndex].value">
| <option>Select link</option>
| <option value="www.microsoft.com">Microsoft</option>
| <option value="msdn.microsoft.com">MSDN</option>
| </select>
| </form>
|
| HTH
| Don
| ===================
| ||I am trying to create a dropdown box to use for navigation and just add
| links
|| to each option to certain anchor points on the page. Only I cant figure
| how
|| you add links inside the dropdown box so when a user clicks on an option
| is
|| follows the link. Thanks for any help you can givel.
|| Bill
|
|
 
if you use the drop down box, that javascript you provided will still be needed.
you just replace the actual links with anchor reference names.

| <select onchange="if(this.selectedIndex > 0 ) location.href='http://' +
| this.options[this.selectedIndex].value">
| <option>Select link</option>
| <option value="yourpage..htm#bookmark1">
| <option value="yourpage.htm#bookmark2"</option>
| </select>
| </form>
and so on.



Don said:
Ooops

After reading closer....

The key word is "Bookmarks"

1.. In Page view, at the bottom of the document window, click Design .
2.. Select the text to which you want to assign a bookmark .).
3.. On the Insert menu, click Bookmark.
4.. Under Bookmark name, type or select the name of the bookmark (spaces
are allowed).

You can then link to the "bookmark"
When adding the hyperlink look for the bookmark button...

Sorry for the confusion on my part...

Don
__________________
==================
| Try this..
|
| <form>
| <select onchange="if(this.selectedIndex > 0 ) location.href='http://' +
| this.options[this.selectedIndex].value">
| <option>Select link</option>
| <option value="www.microsoft.com">Microsoft</option>
| <option value="msdn.microsoft.com">MSDN</option>
| </select>
| </form>
|
| HTH
| Don
| ===================
| ||I am trying to create a dropdown box to use for navigation and just add
| links
|| to each option to certain anchor points on the page. Only I cant figure
| how
|| you add links inside the dropdown box so when a user clicks on an option
| is
|| follows the link. Thanks for any help you can givel.
|| Bill
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top