jQuery Cycle - 寻呼机分为多个div

时间:2011-07-06 01:43:52

标签: jquery jquery-plugins jquery-cycle

我正在使用jQuery Cycle Plugin创建幻灯片,但我希望能够将缩略图分成多个div。目前他们都被安置在一个div中 - #right .thumbs。

我想要以下内容:

  

图1-25 - div.thumbs

     

图片26-50 - div.thumbs

     

而不是

  

图1-50 - div.thumbs

如果这没有意义,请告诉我。这是我目前使用的代码......

$('#left .slides').cycle({
        timeout:0,
        speed:1200,
        fx:'fade',
        pager: '#right .thumbs',
        pagerAnchorBuilder: function(idx, slide) { 
            img = $('#'+slide.id).find('img').attr('src');
            return "<li style='background-image:url("+img+")'><a href='#'></a></li>"; 
        } 
});

0 个答案:

没有答案
相关问题