dropdown menu with links

D

DianaH

I want to create a dropdown menu (without a form) and have the selection go
to a specific page. Is there a way to do this in frontpage?

Thanks.
 
D

DianaH

Ok ... I figured out ... adding a jump menu (behaviour) ... and added the
various items (pages) but it doesn't jumpt to those pages .... booooo..

Any thoughts on how to get this to the next step to that it works.
Thanks.

I want to create a dropdown menu (without a form) and have the selection go
to a specific page. Is there a way to do this in frontpage?

Thanks.
 
A

AMysticWeb

Hi Diana,

Below is code that should work for you. I don't know how to do this without
using form tags.

This one involves a <Head> script. Be sure to place it there or it won't work.

Also, don't change the form name.

<Head> code
-----------------

<script language="JavaScript">
<!--
function goToURL(form)
{

var myindex=form.dropdownmenu.selectedIndex
if(!myindex=="")
{
window.location.href=form.dropdownmenu.options[myindex].value;


}
}
//-->
</script>

-----------------

++++++++++++++++++++++++++++++++++

Body code
-----------------
<Form>
<p align="right"><select name="dropdownmenu" size="1"
onChange="goToURL(this.form)"
<option value="index.html" selected>Name
here</option>
<option value="" ></option>
<option value="" ></option>
<option value="" ></option>
<option value="" ></option>
</select>
</form>
-----------------
PS You can use more than one on a page, just make sure not to change the
form name. They all need to be dropdownmenu

Mike Smith,

http://FrontPageForms.com
FrontPage Form Tutorials
& Form Script Examples
 
R

Rob Giordano \(Crash\)

Try trying it by File | Preview in Browser first.


| Ok ... I figured out ... adding a jump menu (behaviour) ... and added the
| various items (pages) but it doesn't jumpt to those pages .... booooo..
|
| Any thoughts on how to get this to the next step to that it works.
| Thanks.
|
| | I want to create a dropdown menu (without a form) and have the selection
go
| to a specific page. Is there a way to do this in frontpage?
|
| Thanks.
|
|
|
 

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