Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Saving web graphics from Photoshop


From:

Create Navigation Menus with jQuery and Dreamweaver

with Chris Converse

Video: Saving web graphics from Photoshop

Now to create the graphics for our layout, let's come up to the folder 2, Art Templates inside of the exercise files. Let's open up template_items.psd. Now inside of the Layers Panel, I have a layer at the bottom called fpo. This is simply just a gray layer, but since we have some semi-transparent artwork on the stage here, this is going to make it easier for us to see that artwork. So I am going to zoom up here on the individual slices. Now to get to the Slice tool, we are going to come over here to the Cropping tool, click and hold, and we will see two Slice Tools here, the Slice Creation tool, and the Slice Selection tool.
please wait ...
Watch the Online Video Course Create Navigation Menus with jQuery and Dreamweaver
25m 49s Intermediate Aug 09, 2012

Viewers: in countries Watching now:

Find out how to add stylized dropdown menus to your web site using HTML, CSS, and JavaScript. Working in Dreamweaver, author Chris Converse breaks down the menu design process, explaining how to build a menu foundation using unordered lists, establish hierarchy with nested submenus, apply styling using CSS rules, and incorporate dropdown functionality using a jQuery plug-in.

To preview the finished project, visit: http://codifydesign.com/chris/lynda/samples/course-0015

This course was created and produced by Chris Converse. We are honored to host his material in the lynda.com online training library.

Subjects:
Developer Web
Software:
Dreamweaver jQuery
Author:
Chris Converse

Saving web graphics from Photoshop

Now to create the graphics for our layout, let's come up to the folder 2, Art Templates inside of the exercise files. Let's open up template_items.psd. Now inside of the Layers Panel, I have a layer at the bottom called fpo. This is simply just a gray layer, but since we have some semi-transparent artwork on the stage here, this is going to make it easier for us to see that artwork. So I am going to zoom up here on the individual slices. Now to get to the Slice tool, we are going to come over here to the Cropping tool, click and hold, and we will see two Slice Tools here, the Slice Creation tool, and the Slice Selection tool.

I am going to select the Slice Selection tool, double-click on logo. And here we can see the slice settings, the Name is logo, the Width is 120, the Height is 70. This is the semi-transparent ping file that's used inside of the IE7 and 8 CSS file. We'd use a semi-transparent ping here since IE7 and 8 don't support semi-transparency with CSS 3, and this is set to 15 x 15. And if I zoom up even further, we can see the two small arrows, we are going to use as indicators for our menu.

This is the down arrow set to 7 x 5, and the right arrow set to 10 x 7. Then lastly, if I zoom out we see this large graphic across the top. This has named banner, and it's set to 980 x 150 pixels. So before we save these out, let's come back to the Layers panel. Let's turn off the fpo layer, and let's come under the File menu and come down and choose Save for Web. If you're using Photoshop CS2 to Photoshop CS 5.5, this menu item will say Save for Web and Devices.

In Photoshop CS6, which is what I am using here, Adobe changed the name now to just Save for Web. When you select this, this is going to bring up the dialog box giving us all of the optimization settings for these slices. So if I select this slice right here, the very top one, I can see this is set to a JPEG file, 75% Quality. And in the lower left-hand area, I can see that this is going to take up 32 kilobytes. If I select the logo, this is going to be saved as a 24-bit PNG, which is going to give us all of that semi-transparency as well. And this slice here, 24-bit PNG for the ie_transparency, and then the tiny little slices here for the arrow indicators, and I can zoom up on those as well.

Now all of these optimization settings have been saved into this Photoshop file, so all of these slices will retain these settings. Let's come down and hit Save. Now from this Save As dialog box, let's come under the Slices. Make sure All User Slices is selected. This tells Photoshop that any slice that we have created will get saved out. All of the additional slices that Photoshop creates to complete the canvas will be ignored. Let's come up here and choose myMenu. Let's pick the images directory, let's hit Save. Now move my document out of the way, come back to the operating system, and now inside of the images directory, we can see all of those individual slices from the Photoshop canvas are saved as individual graphics.

I have arrow_down and arrow_right saved out as GIF files, banner.jpg, ie_transparency and logo are saved out as PNG files. Now that we have generated our graphics, let's come back to the index.html file. Let's open this up in a browser. So in here we can see that our CSS rules are kicking in and locking onto those graphics, our logo is here in the upper left-hand corner. And we can see the graphic in the background that's being applied to that header element inside of our HTML file. So now that we have all of the graphics in place, in the next movie we will start working on the HTML markup that we are going to have our jQuery plug-in conform into a menu.

Find answers to the most frequently asked questions about Create Navigation Menus with jQuery and Dreamweaver .


Expand all | Collapse all
please wait ...
Q: Where can I find more menu information and plug-ins from menu systems?
A: There is a great article from 1stwebdesigner, "38 jQuery And CSS Drop Down Multi Level Menu Solutions", where they list and explain thirty-eight different plug-ins and techniques.
 
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.

* Estimated file size

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 Create Navigation Menus with jQuery and Dreamweaver.

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


OK

Upgrade to View Courses Offline

login

With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

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 ?

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:

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.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Start your FREE 10-day trial

Begin learning software, business, and creative skills—anytime,
anywhere—with video instruction from recognized industry experts.
lynda.com provides
Unlimited access to over 4,000 courses—more than 100,000 video tutorials
Expert-led instruction
On-the-go learning. Watch from your computer, tablet, or mobile device. Switch back and forth as you choose.
Start Your FREE Trial Now
 

A trusted source for knowledge.

 

We provide training to more than 4 million people, and our members tell us that lynda.com helps them stay ahead of software updates, pick up brand-new skills, switch careers, land promotions, and explore new hobbies. What can we help you do?

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.