|
The drop-down navigation menu above is very similar in functionality to the Frames-Sensitive Drop-Down Navigation Menu, except that rather than pointing to a frameset, it points to the HTML target “_blank”
- Right-Click (Control-Click if you’re on a Mac) in the Layout area and select “Layout HTML” (“Layout Script” if you’re using 2.0) from the pop-up menu that appears.
- In the “Between Head Tags” field (“Inside Head Tag” if you’re on 2.0), insert the following code:
|
<script language="JavaScript"> <!-- Hide the script from old browsers -- function surfto(form) { var myindex=form.dest.selectedIndex window.open(form.dest.options[myindex].value, target="_blank"); } // --> </script>
|
|
- Create a Layout Area, Text Area or Table and select the “... is a form” checkbox in the General tab of the Properties window.
- Create a Multi-Line form element in this form area.
- Name the Multi-Line form element dest
- Populate this form element with the URLS for the pages you wish to link to from this menu. Keep in mind that if you’re using relative links, you must put in the path to the page relative to the page you’re placing the menu on (this can be tricky if you’re using “By Site Structure” as your File Structure setting)
- If you’re using Version 3.0
Create a forms button in the forms area and set it to the button type “Button”. Put “Go!” in as the text (or any other text you like), then add the following code to the “Object HTML” in the “Inside Element Tag” field:
|
onClick = “surfto(this.form)”
|
|
- If you’re using Version 2.0
Create a text object and insert the following code into the “Before Element Tag” field of the “Element Script”:
|
<input type=”button” value=”Go!” onClick = ”surfto(this.form)”>
|
|
... that should do it!
|