Dropdown Menu to Links?

A

auerbach

In FP 2003, can I create a dropdown list from the Insert | Form | Component
menu in which each of the items in the dropdown is hyperlinked to a page on
the website? That is, hitting "Select" would cause the linked paged to open.

For example, in a company directory I could have a dropdown list of
employees. Choosing a name and hitting the "Select" button would open a
page with a biography of that employee.

Thanks in advance.

Alex
 
T

Thomas A. Rowe

Not without using JavaScript. In the IE address bar type:

? JavaScript Jump Menu Script

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
S

Steve Easton

You will have to do a lot of scripting by hand, but here's an example that may get you
started.

Copy and paste to a new blank page , between the body tags in code view. Then preview in
browser to see how it works.

<p align="center"><select id="setit" onchange="launchit()">
<option value="">Select a Name</option>
<option value="javascript:window.open('http://www.altavista.com')">AltaVista</option>
<option value="javascript:window.open('http://www.yahoo.com')">Yahoo</option>
<option value="javascript:window.open('http://www.google.com')">Google</option>
</select>

<script language="javascript">
function launchit(){
eval(setit.options[setit.selectedIndex].value);
}
</script>


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
A

auerbach

Steve,

This is exactly what I was hoping for. Thanks so much!

Alex

Steve Easton said:
You will have to do a lot of scripting by hand, but here's an example that may get you
started.

Copy and paste to a new blank page , between the body tags in code view. Then preview in
browser to see how it works.

<p align="center"><select id="setit" onchange="launchit()">
<option value="">Select a Name</option>
<option value="javascript:window.open('http://www.altavista.com')">AltaVista</option

<option
value="javascript:window.open('http://www.yahoo.com')">Yahoo said:
value="javascript:window.open('http://www.google.com')">Google said:
</select>

<script language="javascript">
function launchit(){
eval(setit.options[setit.selectedIndex].value);
}
</script>


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

auerbach said:
In FP 2003, can I create a dropdown list from the Insert | Form | Component
menu in which each of the items in the dropdown is hyperlinked to a page on
the website? That is, hitting "Select" would cause the linked paged to open.

For example, in a company directory I could have a dropdown list of
employees. Choosing a name and hitting the "Select" button would open a
page with a biography of that employee.

Thanks in advance.

Alex
 

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

Top