jquery cycle with carousel
Hello, I'm having some problems with jquery cycle pagerAnchorBuilder, when I initiate the carousel functionality the cycle pagerAnchorBuilder is not working, demo here:
www.siljamagg.com/slide-demo/
the code looks like this.
- $('#slideshow').after('<div id="carousel-test"><ul>').cycle({
- fx: 'scrollHorz',
- speed: 400,
- prev: '#prev',
- next: '#next',
- after: onAfter,
- timeout: 0,
- pager: '#carousel-test ul:first',
- pagerAnchorBuilder: function(idx, slide) {
- var img = $(slide).children().eq(0).attr("src");
- return '<li><a href="#" class="nohash"><img src="' + img + '" height="90" /></a></li>';
- }
- });
-
- $('#carousel-test').scrollingCarousel({
- scrollSpeed: 'slow',
- looped: false
- });
got any tips for me?
thanks.
ingvi