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

Adding interface graphics


From:

Create a Rotating Carousel with jQuery and Dreamweaver

with Chris Converse

Video: Adding interface graphics

The next rule we are going to create is going to be for the actual carousel itself, and this is actually going to be an ID. So let's go over to the CSS Styles panel, create a new rule. The Type is going to be an ID, and we are going to call this carousel and ID start with the pound sign. Let's choose OK. The Properties inside of here, under the Box settings, we are going to choose 600 wide, 300 pixels tall. Let's uncheck Same for all for Margin, and let's choose 0 on the Top, Auto on the Right, 0 on the Bottom, and Auto on the Left. Then click OK.
please wait ...
Watch the Online Video Course Create a Rotating Carousel with jQuery and Dreamweaver
58m 47s Intermediate Feb 02, 2012

Viewers: in countries Watching now:

Learn how to implement and customize an interactive rotating carousel animation with jQuery and Adobe Dreamweaver. Author Chris Converse covers preparing the carousel images and captions, creating the carousel containers with HTML and CSS, and activating the carousel with JavaScript. The course also explains how to add images to the carousel container, set the caption based on the image in focus, and add animated transitions between captions.

Topics include:
  • Exporting graphics from Photoshop
  • Creating the HTML, CSS, and JavaScript files
  • Positioning elements with CSS
  • Using the Roundabout plug-in
  • Activating the carousel callback
  • Detecting the image in focus
  • Adding the final touches
Subject:
Web
Software:
Dreamweaver jQuery
Author:
Chris Converse

Adding interface graphics

The next rule we are going to create is going to be for the actual carousel itself, and this is actually going to be an ID. So let's go over to the CSS Styles panel, create a new rule. The Type is going to be an ID, and we are going to call this carousel and ID start with the pound sign. Let's choose OK. The Properties inside of here, under the Box settings, we are going to choose 600 wide, 300 pixels tall. Let's uncheck Same for all for Margin, and let's choose 0 on the Top, Auto on the Right, 0 on the Bottom, and Auto on the Left. Then click OK.

Let's get our cursor after the word content inside of the default text for the carousel_container. Let's come up to Layout in the Insert panel, insert a div, and under ID, let's come down and choose carousel, then click OK. Next, we are going to create a rule for the images that are going to be inside of the carousel. Let's create a new rule. This is going to be a compound rule, and this is going to be carousel img. We are going to target all of the images that are going to be inside of the carousel. In this case, this is going to be all of the teapot graphics. So pound, carousel image, choose Ok.

What we are going to do here, come down to the Box properties. For the Width we are going to set these to 300. Height is going to be set to 225. And next we are going to come down to Extensions, and under Cursor, we are going to type pointer, then choose OK. This is going to make sure that all of the teapot graphics will give you a pointer cursor, indicating to the user that you can actually click on individual images inside the carousel. And we need to bring in two additional graphics inside of the carousel container but not inside of the carousel ID.

So let's get our cursor after the letter E in here inside of the default text for carousel container. Let's come up to the Common tab. Let's choose image. Let's bring in our left and right arrows. So first let's bring in the arrow that points to the left. Click Choose. For Alternate text, we can just type arrow left. Let's choose OK. Next let's select the graphic. Hit your right arrow to make sure that your cursor is still inside of the carousel_container div.

Let's come up and insert our second graphic. Let's choose arrow right, click Choose, type arrow right for the alternate text then click OK. Once we have our arrows in place, let's come in here and select the default text for the carousel_container, and at the top, where it says content. So now, if we take a look at the source code, we should see that we have our div called carousel_container, and inside of there we have an ID called carousel.

And I am going to format the two images in here as well a little bit. So we can see we have the ID carousel and the two images for the right and left leaves inside of that container that we just created. And again, these four outermost items are still inside of our overall my_carousel container. Let's switch back to Design view, and let's create one more class. Let's go over to our CSS panel, CSS rules. We are going to create one more ID. This is going to be captions. Choose OK.

We are not going to set any properties for captions. We just want to have that container with that ID. Let's click OK, and let's come down inside of the default text for captain_container Goes Here. Let's come up to Layout in the Insert panel, insert a div. Under ID, we are going to choose caption, then say OK. Then lastly, let's come in here and get rid of the default text for the captain_container. Now we have these two IDs in place. The caption IDs are going to target the individual captions for the rotated item in the carousel, and the carousel itself is where we are going to take all the teapot images and have the Roundabout plug-in position these in the circle.

Now that we have all of the items and containers in place, in the next movie we will style the individual arrows and the leaves to position them properly before we can actually start writing our scripts.

There are currently no FAQs about Create a Rotating Carousel with jQuery and Dreamweaver.

 
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

* 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 a Rotating Carousel 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.