O'Reilly logo

jQuery for Designers : Beginner's Guide - Second Edition 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 the carousel controller

Follow these steps to create a Cycle2 carousel that can act as a controller for a slideshow:

  1. First, we'll create the carousel. Once we have that on the page and it's functioning, we'll add the slideshow and then connect them together.

    Here's the HTML markup we'll use for the slideshow:

    <div id="carousel"> <div class="cycle-slideshow"> <div> <a href="images/AguaAzul.jpg"> <img src="images/AguaAzul-thumb.jpg" width="140" height="100"> </a> </div> <div> <a href="images/BurneyFalls.jpg"> <img src="images/BurneyFalls-thumb.jpg" width="140" height="100"> </a> </div> <div> <a href="images/Deer_Leap_Falls.jpg"> <img src="images/Deer_Leap_Falls-thumb.jpg" width="140" height="100"> </a> </div> </div> </div> ...

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