Navigation

G

Guest

Please can someone explain how to produce drop down navigation buttons in
frontpage 2003 ? Can this be done and how ? I have a programme called front
FX which has loads of buttons, but no drop down nav buttons.

Many Thanks
 
K

Kevin Spencer

Create a drop-down list box (select element) in a form. Set the value of
each item to a URL. Add an "onchange" event handler to the drop-down that
sets the document.location property to the URL of the selected option.
Example:

<form><select onchange="document.location =
this.options[this.selectedIndex].value"size="1" name="D1">
<option selected>Select One</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.microsoft.com">Microsoft</option>
</select></form>

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 
G

Guest

Do I need FP extensions for this drop down box ? I am on windows server if
that helps.
cheers

Kevin Spencer said:
Create a drop-down list box (select element) in a form. Set the value of
each item to a URL. Add an "onchange" event handler to the drop-down that
sets the document.location property to the URL of the selected option.
Example:

<form><select onchange="document.location =
this.options[this.selectedIndex].value"size="1" name="D1">
<option selected>Select One</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.microsoft.com">Microsoft</option>
</select></form>

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

Phil Brighton said:
Please can someone explain how to produce drop down navigation buttons in
frontpage 2003 ? Can this be done and how ? I have a programme called
front
FX which has loads of buttons, but no drop down nav buttons.

Many Thanks
 
K

Kevin Spencer

Hi Phil,

No extensions necessary. In fact, the only reason you need a form at all is
that some browsers won't display the form element unless it's inside a form.
Note that I've removed everything from the form tag. There is nothing to
make it submit. All the drop-down list does is to fire a JavaScript event
handler that navigates the document to the URL of the selected option.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

Phil Brighton said:
Do I need FP extensions for this drop down box ? I am on windows server if
that helps.
cheers

Kevin Spencer said:
Create a drop-down list box (select element) in a form. Set the value of
each item to a URL. Add an "onchange" event handler to the drop-down that
sets the document.location property to the URL of the selected option.
Example:

<form><select onchange="document.location =
this.options[this.selectedIndex].value"size="1" name="D1">
<option selected>Select One</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.microsoft.com">Microsoft</option>
</select></form>

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

Phil Brighton said:
Please can someone explain how to produce drop down navigation buttons
in
frontpage 2003 ? Can this be done and how ? I have a programme called
front
FX which has loads of buttons, but no drop down nav buttons.

Many 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