Drop-Down

G

Guest

HELP! How do I create a drop down box? I want to user to go to the selected
page with out a submit button. I have tried Insert > Drop Down > but don't
understand where the information needs to be to work. (i.e. the .htm pages
which need to display, based on the selection of the drop down)

Thank you! I've been trying for weeks.
 
M

Mark Fitzpatrick

A standard dropdown box itself doesn't do what you want. It's just something
for forms. In order for it to do what you would like, you need a JavaScript
to actually handle this. These scripts are often referred to as Jump Menus.
Luckily there are a number of free scripts out there to do this. Check out
the ones at: http://javascript.internet.com/navigation/jump-menu.html
and especially:
http://javascript.internet.com/navigation/jump-menu-2.html

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
G

Guest

Thank you Mark. I appreciate the help but this still did not work. I've
pasted the code I used on just a blank page below. I already have an
existing site and all my links are live and work properly. So I am still at
a loss.

I used the second you sent me for the jump menu 2. Maybe you can find the
mistake?

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>

<script type="text/javascript">
<!--
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Robin Jones :: http://www.robinjones1.freeuk.com */

function jumpBox(list) {
location.href = list.options[list.selectedIndex].value
}
-->
</script>
</head>

<body>

<form>
<select>
<option selected>Select Resort
<option value="flordia.htm">Walt Disney World
<option value="california.htm">Disneyland
</select>
<input type="button" value="Go" onClick="jumpBox(this.form.elements[0])">
</form>

</body>

</html>
 

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