Adding Navigation Bars


A Dreamweaver navigation bar consists of a set of images that change in response to a user action. Before you use the Insert Navigation Bar command, you must prepare the image sets for each individual image (or button) that will appear in the navigation bar. If you want to use four image states, you'll need four images for each button similar to the four variations on the FOOD button you see in Figure 12.12 .

Figure 12.12. Save image variations with names that relate to the image state they represent.


To add a navigation bar:

1.
Select the insertion point in the document window where the navigation bar goes.

2.
Select Insert > Image Objects > Navigation Bar.

or

Select Navigation Bar from the pop-up menu next to the Image icon in the Common tab of the Insert Bar.

3.
The Insert Navigation Bar dialog will open ( Figure 12.13 ), and display the following fields:

  • Nav bar elements: Don't enter anything here. As you add each element to your nav bar, this list grows automatically.

  • Element name : This is the unique name that identifies the object. JavaScript objects must have unique names. On a nav bar, it makes sense to use a name that's the same or similar to the menu choice on the button. Remember, no spaces are allowed in the name.

  • Up image: This is the Up (default) version of the image.

  • Over image: This is the over version of the image.

  • Down image: This image is displayed when the user clicks on the image.

  • Over while down image: This version of the image appears when the user moves the mouse after clicking on the image.

  • Alternate text: This is what displays for users with non-graphical browsers.

  • When clicked, Go to URL: This is the page the user sees when the menu is clicked. Specify the window in which you want the URL to open. If you're using frames (See Chapter 11, "Adding Frames"), put the name of one of the frames here. If you're not using frames , leave it at "Main window."

  • Options: Always check Preload images. Show "Down image" initially would be selected on an individual page-by-page basis only if you're using the down version of the image to indicate the current page. When this option is selected, an asterisk appears after the element in the Nav bar elements list.

  • Insert: This pop-up menu lets you choose either a horizontal or vertical layout for the nav bar.

  • Use tables: If this check box is selected, the nav bar will use a table layout.

Figure 12.13. Those helpful image names come in handy when you're trying to manage four images for each button.


4.
Click the plus button to add other elements and complete the dialog for each new element.

5.
When you're done adding elements, click OK to accept your entries.

6.
Check the default actions in the Behaviors panel to be sure they're the ones you want.

Tips

  • If you want a navigation bar with only Up and Over image changes, leave the "Down image" and "Over while down image" fields blank.

  • Remember, alternate text appears when the image isn't visible. Write text that replaces the image effectively. If the button says "FOOD," for example, it's a good idea to use the word "FOOD" as the alternate text.

  • You can save some time if you copy and paste your navigation bar onto other pages. If you want to change the parameters for the navigation bar on individual pages, use the Modify > Navigation Bar command or the Set Nav Bar Image behavior.

  • You can save even more time by making your navigation bar into a reusable library item. (See Chapter 13, "Making Life Easier: Using Templates, Libraries, and Snippets," for more about library items.) You can't customize a library item on individual pages.





Macromedia Dreamweaver 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Dreamweaver 8 for Windows & Macintosh
ISBN: 0321350278
EAN: 2147483647
Year: 2005
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net