Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating navigation bars with multiple states

From: Dreamweaver CS3 Essential Training

Video: Creating navigation bars with multiple states

So far, we've looked at simple rollovers, and disjointed rollovers, and there's one more type of rollover I want to take a look at before we get into working with a little bit of {italic} Flash,{plain} and that's the Navigation bar. When you create a Navigation bar in {italic}Dreamweaver,{plain} you can populate it with image rollovers, and each one of those images can actually have four states. The states are up, over, down, and over while down. So, instead of working with two images for each rollover, this type of rollover requires you have four to work with; one for each separate state. This might sound a little intimidating, but {italic}Dreamweaver's{plain} Navigation bar feature makes it much easier than you might imagine to create this sort of thing. To start off, let's look at the Assets panel here.

Creating navigation bars with multiple states

So far, we've looked at simple rollovers, and disjointed rollovers, and there's one more type of rollover I want to take a look at before we get into working with a little bit of {italic} Flash,{plain} and that's the Navigation bar. When you create a Navigation bar in {italic}Dreamweaver,{plain} you can populate it with image rollovers, and each one of those images can actually have four states. The states are up, over, down, and over while down. So, instead of working with two images for each rollover, this type of rollover requires you have four to work with; one for each separate state. This might sound a little intimidating, but {italic}Dreamweaver's{plain} Navigation bar feature makes it much easier than you might imagine to create this sort of thing. To start off, let's look at the Assets panel here.

I'm going to make this a little bit bigger so, you can actually see the button. So, there's the aboutus-out button that we've been looking at so far. There's the aboutus-over button that we've been working with. The other states that we have here, are aboutus-down. Notice that it has a little light bar to the bottom of the button, and we also have aboutus-overdown, which keeps that bar, but also makes the button look a little bit darker. Each one of these buttons looks similar, but is slightly different from the other ones. Notice that the way we've named these images: down, out, over, and overdown. It's important that you name your images properly so, you know which ones you need to select when you actually go to create your rollovers. You might hear other words to describe the states of these buttons. For instance, "out" is sometimes called "up", meaning that it's the graphic that appears on the web page when it's first loaded. Sometimes this is also called the off-state, just like "over" is sometimes called the on-state.

Down is generally referred to as "down", and overdown is generally referred to as "overdown", and we'll see what each one of these means, as we build our Navigation bar. Let's go back to the Files panel, and I'm going to open up aboutus.html. This file is also missing the Navigation bar, but instead of setting it up like we did before with each rollover button separately, we're going to set up the entire Navigation bar in one fell swoop. I'll click our cursor into the cell, and we're going to click the Image button up here in the Insert bar, and we're going to choose Navigation Bar. That opens up this big intimidating looking dialog box, but as you'll see, it's really not that intimidating. So, the first thing we need to enter here is an element name. It's just like adding an ID to our rollover image so, this'll be aboutus, and next we need to Browse for each one of our four images.

We want the Up image so, we'll click Browse. In this case were going to go to navigation, and we'll find aboutus-out, which again, is the same as "Up". We'll choose that. Next we need our Over image. We'll Browse for that, and find aboutus-over. Next we need our Down image. Browse for that, find aboutus-down, and last we'll need our Over while down image, and we'll find that right there. Click on choose, and we should probably be proper about this, and add some alternate text. We're going to keep the "When clicked, Go to URL" empty because we're already on the aboutus page so, there's no sense making the About Us button take us to the aboutus page. Adding this Navigation bar to the aboutus page, we're going to select Show "Down image" initially. That's going to give a little visual indicator to the user that they actually are on the aboutus page, and you'll see what I mean in just a moment. Again, we have the option to preload images, which we will always want to keep checked, and a couple of other options here we can choose to have the Navigation bar created Horizontally, or Vertically. We definitely want Horizontally in this case, because that's how our table cell is set up, and in this case I'm going to uncheck Use tables. Leaving this box checked would place each of the navigation buttons in its own table cell, however, we don't really need option in this particular case because we're working in a table cell already. Before we preview this, we're just going to finish the entire Navigation bar. So, that's the first button that's going to appear in our Navigation bar, and those are all four states of that button. Now, we need to add the next one so, we're going to come in here, and click the + button to add the next button, and this is going to be the abouttea button so, we'll type aboutea as our element name. Now, we just need to go find all of those images. Here's abouttea-out for the upstate.

For the overstate, we find abouttea-over, abouttea-down, and abouttea-overdown, which is this one here, and we'll type our alternate text, and in this case, we do want to link to a page, which would be abouttea.html, because obviously, we want our Navigation bar to take us to the proper page. In this case we don't want to show the Down image because we're not on the abouttea page. Everything else we can leave the way it is. Let's add our next one, ourproducts, and we'll find all of those images. I'm just going to expand this so, I can see these a little bit better. There's ourproducts-out, over. I have to find the Down image, and the overdown image.

Type in some Alternate text, and we can Browse here. This will probably linked to ourproducts, and we'll link that to the kettles, and teapots page, Choose, and we've got one more button to add. It will be brewingtea, and we'll quickly find all those images. Find brewingtea-out. For the Down image, we need brewingtea-down, and for the Over while down image, we need brewingtea-overdown.

This may seem time-consuming, but it's actually much less time-consuming than it would be to do all this stuff by hand, or by code, brewingtea, and we'll link that to brewingtea.html. You can click through here, and sort of double check all of your buttons make sure it Out, Over, Down, Over while down, out, over, down, overdown. Yes, it looks like we've got all the information we need. Now, if you want to rearrange the order of any these buttons, for instance, if I want ourproducts to come after aboutus, I just need to select it, click the up arrow, and that moves it up in the list. There's all the information we need for our navigation bar. I'm going to click on OK, and there's our Navigation bar. Notice that it displays the About Us Down image right away, which has that little white bar, and when we see this on a web page, it tells us OK, that's different, that must indicate that we are on the About Us page. Let's go ahead, and save this, and let's preview this in the browser, and we can see that our rollovers are working, that we created in our navigation bar. If I click on one of these, say Our Products, it takes me to that page, but notice that the Navigation bar is missing here, because we didn't add a Navigation bar on that page. The links are working, but the Navigation bars have not yet been added. Notice as I click on these, let's go back again. If I come back to the About Us page. When I click on this, there I see the downstate again, and notice when I rollover it, that's the "Over while down" state that I'm seeing there.

Fortunately, it's pretty easy to copy a Navigation bar in {italic}Dreamweaver.{plain} Instead of having to do that all again, All I'm going to do click in the cell, and click "tdnavigation". Just select that entire table cell, and I'm going to copy it. Just to show you how this works, I'm now going to open up abouttea.html. Click into cell, select the cell, and now we'll just choose Edit > Paste, and there's the Navigation bar on that page. It's that easy, and when you copy rollovers all the links get copied as well so, if I go back to About Us again, and preview this in the browser, and I click About Tea: there it is. There's the Navigation bar I just copied, and I can click on the other links to go to those pages. Now, I still need to do a little bit of tweaking on the About Tea page.

Even though I copied it, it's still set up to indicate that we're on the About Us page. I'm going to go to Modify> Navigation Bar, to go back to the Navigation Bar dialog box, and since we're working on the About Tea page, I'm going to select abouttea, and I'm going to choose to Show the "Down image", initially here. I also need to go to select aboutus, and add a link here. Right now it's currently blank because we didn't need to link to the actual page. Now, we'll link to aboutus, which means I can also go back to abouttea, and remove the link here, because I don't need to link to the page that I'm on.

Click on OK. Save my page. Let's preview this. I didn't change the state of About Us either so, let's go back, and do that. Modify > Navigation Bar, again. Select aboutus, and uncheck Show "Down image" initially. There we go, save that. Preview again, that's much better, and now our links are working again. I think you get the idea.

You can continue copying that Navigation bar to our other pages, and altering the Navigation bar as necessary for each page that the Navigation bar appears on. That's how we create a Navigation bar in {italic}Dreamweaver.{plain} Pretty easy to do. Definitely much easier to do here in {italic} Dreamweaver{plain} than it would be to do by hand by going into the code. Now, you've been introduced to simple rollovers, disjointed rollovers, and the Navigation bar. All of these will take a little bit of playing around with, but once you get some practice down, you should have no problem working with any of these types of rollovers. I'm going to close these pages, and in the next movie we'll take a look at working with some {italic}Flash{plain} rollovers.

Show transcript

This video is part of

Image for Dreamweaver CS3 Essential Training
Dreamweaver CS3 Essential Training

129 video lessons · 86935 viewers

Garrick Chow
Author

 
Expand all | Collapse all
  1. 1m 12s
    1. Welcome
      1m 12s
  2. 21m 0s
    1. HTML vs. XHTML
      3m 4s
    2. What is CSS?
      3m 48s
    3. What is XML?
      2m 11s
    4. What is DHTML?
      1m 9s
    5. What is JavaScript?
      1m 23s
    6. File naming conventions
      3m 22s
    7. What is an index page?
      6m 3s
  3. 46m 18s
    1. Setting up your workspace
      2m 39s
    2. The Welcome screen
      4m 11s
    3. Windows and Mac differences
      3m 18s
    4. The Insert bar
      4m 38s
    5. The Property Inspector
      1m 50s
    6. The Document toolbar
      6m 6s
    7. The Document window
      9m 11s
    8. Panels and panel groups
      6m 58s
    9. Saving workspace layouts
      2m 22s
    10. Defining a default browser
      5m 5s
  4. 24m 59s
    1. Defining a site
      9m 5s
    2. File and folder management
      3m 11s
    3. Understanding path structure
      3m 17s
    4. Adding content to a site
      6m 6s
    5. Creating a site map
      3m 20s
  5. 38m 39s
    1. Creating a new blank site
      6m 0s
    2. Creating and saving a new document
      7m 54s
    3. About DOCTYPE
      3m 59s
    4. Inserting images
      9m 26s
    5. Inserting text
      3m 35s
    6. Aligning text and images
      4m 9s
    7. Inserting meta tags
      3m 36s
  6. 45m 58s
    1. Link basics
      6m 4s
    2. Linking with Point to File
      5m 18s
    3. External links
      4m 15s
    4. Creating email links
      5m 49s
    5. Named anchors
      7m 37s
    6. Linking to a file
      7m 35s
    7. Image maps
      9m 20s
  7. 1h 8m
    1. About CSS
      4m 52s
    2. Anatomy of a style sheet
      4m 10s
    3. CSS and page properties
      10m 11s
    4. Moving an internal style sheet to an external style sheet
      6m 46s
    5. The CSS Styles panel
      3m 48s
    6. CSS selectors
      2m 37s
    7. Type selectors
      12m 13s
    8. ID selectors
      10m 21s
    9. Class selectors
      5m 42s
    10. Creating rollovers with pseudo-class selectors
      7m 22s
  8. 42m 54s
    1. CSS vs. the Font tag
      2m 42s
    2. Formatting text with the Property Inspector
      8m 41s
    3. What measurement should I use?
      3m 15s
    4. Managing white space with margins, padding, and line height
      8m 34s
    5. Using font lists
      5m 45s
    6. Aligning text
      2m 47s
    7. Creating lists
      5m 8s
    8. Creating Flash text
      6m 2s
  9. 43m 19s
    1. About tables
      1m 28s
    2. Tables in Code view
      2m 36s
    3. Creating and adding content to tables
      7m 40s
    4. Changing table borders with XHTML
      5m 46s
    5. Coloring tables with XHTML and CSS
      6m 41s
    6. Aligning table content
      6m 39s
    7. Sorting tables
      3m 6s
    8. Setting table widths
      4m 48s
    9. Creating rounded-corner tables
      4m 35s
  10. 28m 22s
    1. Dreamweaver's layout tools
      3m 8s
    2. Tracing images
      4m 58s
    3. Adding AP div tags
      7m 29s
    4. Working with Layout Tables
      6m 55s
    5. Adjusting table widths and nesting tables
      5m 52s
  11. 16m 19s
    1. What is a device?
      3m 14s
    2. Attaching a printer-friendly style sheet
      3m 5s
    3. Styling for print
      7m 41s
    4. Adobe Device Central
      2m 19s
  12. 29m 54s
    1. Rollover rules
      3m 31s
    2. Creating simple rollovers
      5m 36s
    3. Creating disjointed rollovers
      7m 12s
    4. Creating navigation bars with multiple states
      9m 21s
    5. Creating Flash buttons
      4m 14s
  13. 26m 32s
    1. Viewing the code
      6m 9s
    2. Editing in Code view
      3m 0s
    3. The Code toolbar
      5m 11s
    4. Working with Code Collapse
      4m 27s
    5. The Quick Tag Editor
      2m 20s
    6. Working with snippets
      5m 25s
  14. 32m 45s
    1. About forms
      3m 23s
    2. Adding text fields
      9m 52s
    3. Adding checkboxes and radio buttons
      5m 37s
    4. Adding lists and menus
      6m 5s
    5. Submitting form results
      3m 23s
    6. Styling form elements with CSS
      4m 25s
  15. 23m 17s
    1. Opening a new browser window
      9m 38s
    2. Creating a popup message
      2m 50s
    3. Validating text fields
      2m 42s
    4. Getting more behaviors
      7m 2s
    5. Removing extensions
      1m 5s
  16. 14m 58s
    1. External image editor preferences
      3m 18s
    2. Built-in image editing tools
      3m 11s
    3. Roundtrip editing from Dreamweaver to Fireworks or Photoshop
      4m 39s
    4. Copying and pasting
      3m 50s
  17. 34m 16s
    1. Templates in action
      5m 12s
    2. Creating a new template
      6m 36s
    3. Applying templates
      3m 36s
    4. Modifying a template
      1m 40s
    5. Adding repeating regions
      3m 28s
    6. Working with repeating regions
      3m 13s
    7. Adding optional regions
      3m 34s
    8. Creating a library item
      3m 48s
    9. Modifying a library item
      3m 9s
  18. 13m 2s
    1. Using the History panel
      4m 24s
    2. Saving History steps as commands
      3m 25s
    3. Using Find and Replace
      5m 13s
  19. 14m 44s
    1. W3C accessibility guidelines
      4m 6s
    2. Accessibility preferences
      1m 29s
    3. Inserting accessible images
      3m 2s
    4. Inserting accessible tables
      2m 53s
    5. Inserting accessible form objects
      3m 14s
  20. 26m 17s
    1. About media objects
      2m 6s
    2. Linking to audio and video files
      5m 56s
    3. Embedding audio and video files
      7m 7s
    4. Setting parameters
      4m 27s
    5. Inserting Flash content
      2m 37s
    6. Inserting Flash video
      4m 4s
  21. 28m 47s
    1. Getting site reports
      3m 35s
    2. Checking links sitewide
      3m 30s
    3. Signing up with Tripod
      6m 36s
    4. Entering remote info
      4m 13s
    5. Publishing your site
      5m 41s
    6. Updating and publishing pages
      5m 12s
  22. 44s
    1. Goodbye
      44s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Dreamweaver CS3 Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.