O'Reilly logo

jQuery for Designers Beginner's Guide by Natalie MacLees

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — creating a basic carousel

Follow these steps to set up a basic jCarousel of images:

  1. As usual, we'll get started with our HTML. Set up a basic HTML document and associated files and folders just like we did in Chapter 1, Designer, Meet jQuery. In the body of the HTML document, create an unordered list of images. The carousel works best when the images are of uniform size. I've made my images 200 pixels wide by 150 pixels tall. Here's what my HTML looks like:
    <ul id="thumb-carousel"> <li><img src="images/thumbs/Switzerland.png" alt="Switzerland"/></li> <li><img src="images/thumbs/CostaRica.png" alt="Costa Rica"/></li> <li><img src="images/thumbs/Canada.png" alt="Canada"/></li> <li><img src="images/thumbs/Seychelles.png" alt="Seychelles"/></li> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required