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

Inserting Spry horizontal menus

From: Site Navigation with CSS in Dreamweaver

Video: Inserting Spry horizontal menus

A number of years ago Adobe caught JavaScript framework fever and decided to release their own library of functions which they called Spry. A good number of Spry widgets were incorporated into Dreamweaver, including the Spry menu bar. The Spry menu bar is extremely easy to use and totally integrated into Dreamweaver. As such, it's a solid on-ramp to exploring the world of CSS navigation in Dreamweaver. In this video, we'll take a look at implementing a horizontal navigation bar with the original Spry menu bar widget.

Inserting Spry horizontal menus

A number of years ago Adobe caught JavaScript framework fever and decided to release their own library of functions which they called Spry. A good number of Spry widgets were incorporated into Dreamweaver, including the Spry menu bar. The Spry menu bar is extremely easy to use and totally integrated into Dreamweaver. As such, it's a solid on-ramp to exploring the world of CSS navigation in Dreamweaver. In this video, we'll take a look at implementing a horizontal navigation bar with the original Spry menu bar widget.

In another video, "Advanced Spry Menu Techniques", I'll show you how to work with the 2.0 version. So I will start with the index.html file open from the Chapter 2 exercise files. As you can see, there is no navigation currently here. Let's go into Split view, and you can see I have my div already set up with an ID for nav bar where I want that navigation to go. So let's go over to the Insert panel and from the Category list choose Spry and then scroll down until you see Spry Menu Bar and click that.

Dreamweaver will ask you if you'd like a horizontal or vertical menu. In this case we want horizontal, so with that selected I'll choose OK, and the sample menu is put in. Let me pull back the Insert bar, so you could take a look at it over here in Live view. And as you can see it's a little vanilla looking, but very workable. When I scroll over it, I get subitems. If I move to a menu item that does not have subitems, the menu item itself just highlights and nothing drops down.

You can also have multiple levels of subitems. So if I go over Item 3.1 here, you can see that there are sub-subitems. Now the great thing about the Spry menu bar is as I said, it's totally integrated into Dreamweaver. I am going to drop out of Live view and just go into Design view, so you can see some of the integration. If I go ahead and open up the Properties Inspector, when I have my Spry Menu Bar tab selected, I get a special Property Inspector here and this makes it really easy to work with the Spry menu bar.

Each of the items that we see here can be selected, and when they're selected, if there is any subitems, they show up here, and if there is any sub- subitems, they show up in this third column. In each circumstance, when you have an item selected, the text label of that item shows up, which you can easily modify here, and you can also change the link, give it a title, even specify a target. Now the first thing we are going to do is save this page and when you do save it, Dreamweaver displays the Copy Dependent Files dialog box that shows that there are a number of files which are being inserted into your site and they're all being put into the SpryAssets folder.

When we click on OK and open up the Files panel, you will see that in the site that I have defined for the exercise files there is in fact now a new SpryAssets, complete with some JavaScript, GIFs, and a little bit further on--some CSS. Those files will of course have to be uploaded when you upload the site to push it live. Let's first start out by customizing the labels. Now, you have a number of ways that you can do that.

You can either do it right from Design view by selecting the label here and changing that Item 1 to Home, and I'll do Item 2 here as About and Item 3 as Process. Now you can also, if I select the Menu Bar tab, accomplish the same thing through the Property Inspector. So if I choose Item 4 and Item 4 I am going to make Contact--I will change the text of it here--and there you see that the label was changed, and of course you can also always do it in Code view.

Now, you can just as easily change the subitems. Now my first item here, Home, doesn't really have any subitems, so I am going to go ahead and remove each of those by going to the Property Inspector and highlighting the item you want to remove and then clicking the Remove Menu Item button, or the Minus sign there. With every click, it removes another one, and there is a third one. Now, there are also subitems under Process, and we're going to go ahead and remove those right now.

So I'll remove the 3.3, 3.2, and notice that there you have Item 3.1. Watch what happens when I go to remove that one. Dreamweaver will display an alert, informing you that this will also remove all of the children items, and asking if that's okay. In this case it is. So now we do want to add some submenu items. In this case, I am going to add some to that same menu process. I could have just changed the name of them, but I wanted to show you the technique used for adding subitem menus.

So, I will go ahead and select the Spry Menu Bar tab and with Process selected, click on the Add menu Item in the second column, which will give me the submenu items, and it will first come in as an untitled item, and I am going to change that to 'Our Oil' and then press Tab. And let's add another one underneath that, and we'll change that to 'Company' and press Tab, and let's add a third item.

And instead of changing it through here, you can also go in and change it in Design view, so I am going to make this one 'The Land' and then just click outside of that to cement that. If you decide that this is not in the proper order--let's say that we want to put Company last here-- I'll go ahead and select the Spry menu bar again, choose Company, and press the Move Item Down widget, which will then shift it down. Now one of the more interesting things about this is we're of course building a navigation bar using an unordered list, and you can see over here in the code that I do have a list tag and each of the list items is shown.

But another way to see this is if you go to the Spry menu bar Property Inspector and choose Turn Styles Off. Now it's a little hard to see because of the way that the links are styled here, but each of these, as you can see from the bullets, is an unordered list or bulleted item. Let's go back and turn those styles back on. So go ahead and save your page again. You'll find that setting up a Spry horizontal menu is dead simple, and in the "Styling Spry Menus" video, I'll show you how to change the look and feel so that it will integrate into your site.

Show transcript

This video is part of

Image for Site Navigation with CSS in Dreamweaver
Site Navigation with CSS in Dreamweaver

40 video lessons · 18160 viewers

Joseph Lowery
Author

 
Expand all | Collapse all
  1. 2m 20s
    1. Welcome
      1m 2s
    2. Using the exercise files
      1m 18s
  2. 9m 26s
    1. Using icons in navigation
      2m 14s
    2. Understanding 3D nav bars
      2m 25s
    3. Understanding explanatory navigation
      1m 51s
    4. Creating animated navigation
      2m 56s
  3. 1h 14m
    1. Inserting Spry horizontal menus
      7m 4s
    2. Styling Spry menus
      6m 29s
    3. Adding Spry vertical menus
      5m 7s
    4. Styling Spry vertical menus
      10m 53s
    5. Using Spry tabbed navigation
      9m 33s
    6. Styling Spry tabbed menus
      9m 55s
    7. Including Spry accordion panel menus
      5m 32s
    8. Styling Spry accordion menus
      11m 10s
    9. Advanced Spry menu techniques
      8m 32s
  4. 35m 45s
    1. Converting lists to menus
      7m 56s
    2. Working with background images
      5m 47s
    3. Implementing sprites
      5m 53s
    4. Setting up adjustable backgrounds
      9m 4s
    5. Designing accessible navigation
      7m 5s
  5. 30m 34s
    1. Looking at the project
      1m 4s
    2. Building up the basic HTML
      2m 9s
    3. Displaying top-level links horizontally
      8m 12s
    4. Customizing the link states
      4m 29s
    5. Adding drop-down menus (HTML)
      3m 48s
    6. Working with submenus (CSS)
      4m 8s
    7. Achieving interactive submenus
      2m 21s
    8. Marking the current page
      4m 23s
  6. 23m 13s
    1. Looking at the project
      57s
    2. Understanding vertical menus
      2m 15s
    3. Defining width for link elements
      4m 43s
    4. Using background graphics with navigation
      5m 45s
    5. Creating pop-out vertical navigation
      6m 29s
    6. Setting link states
      3m 4s
  7. 10m 13s
    1. Identifying anchor tags
      7m 4s
    2. Identifying external links
      3m 9s
  8. 18m 14s
    1. Creating jQuery animated image menus
      7m 45s
    2. Using the HTML5 nav tag
      3m 24s
    3. Exploring CSS3 enhancements
      7m 5s
  9. 28s
    1. Next steps
      28s

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 Site Navigation with CSS in Dreamweaver.

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.