drop-down menu fp 2000

M

MiMoSAgirL

I am using FrontPage 2000 and I am trying a drop-down
menu containing a list of items and each is attached to a
hyperlink. I made the drop-down menu with a list of
things in there but I can't figure out how to make it so
that when I choose an item from the menu and press
the "submit" button beside it, I'd be able to be linked
to somewhere on the web. Please help.
Thank you very much.
 
S

Steve Easton

Requires some javascript, and you really don't need a drop down with a submit button:
Here's an example drop down with the script below it. This will open the other site when a user
selects an option.

<p align="center"><b>Select a Site: </b><select id="setit" onchange="openit()">
<option value="">Select one</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 openit(){
eval(setit.options[setit.selectedIndex].value);
}
</script>


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

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