[ 3 posts ]

chichi latté

  • Username: chichilatte
  • Joined: Tue Oct 05, 2010 5:41 am
  • Posts: 5
  • Offline
  • Profile

Carousel autoPlay increments by page instead of by image

Post Posted: Tue Oct 05, 2010 8:15 am
+0-
Hi, I've got a working carousel up and running with autoplay turned on, but it goes to the next page instead of the next image. I don't see how that could ever be useful, slideshowing a set of thumbnails, very weird.

Anybody know how i can make the autoplay increment one item at a time?

thanks

Gopal Venkatesan

YUI Developer

  • Username: g13n
  • Joined: Mon Dec 08, 2008 11:09 pm
  • Posts: 48
  • Location: Cupertino, CA
  • Twitter: g13n
  • GitHub: g13n
  • Gists: g13n
  • YUI Developer
  • Offline
  • Profile

Re: Carousel autoPlay increments by page instead of by image

Post Posted: Wed Oct 06, 2010 8:23 am
+0-
Hi chichi latté,

The Carousel widget's auto-play functionality is designed to scroll one page at a time. Your requirement cannot be solved out-of-the-box now. That said, you can override the _autoScroll protected method to achive this.

Here's a way of implementing it:
http://pastebin.com/nkYHKruq

HTH
Gopal Venkatesan (g13n)
http://g13n.me/

chichi latté

  • Username: chichilatte
  • Joined: Tue Oct 05, 2010 5:41 am
  • Posts: 5
  • Offline
  • Profile

Re: Carousel autoPlay increments by page instead of by image

Post Posted: Fri Oct 08, 2010 10:53 am
+0-
Gopal thank you, that was a straight copy and paste and it works. i owe you a beer. no, two beers!
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum