dropdown menu with links

  • Thread starter Thread starter DianaH
  • Start date Start date
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.
 
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.
 
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
 
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.
|
|
|
 
Back
Top