Jquery Cycle: pagerAnchorBuilder not working with LiveQuery

一个人想着一个人 提交于 2019-12-13 03:39:02

问题


Hope u people will be fine. I am using jquery cycle plugin togther with livequery. It is working fine except pagerAnchorBuilder. Any body know how to fix this problem. Jquery Cycle Code is following:

            $j('ul.slider-thumbs').livequery(function() {
                $j(this).cycle({ 
                    fx:     'fade', 
                    speed:  750, 
                    timeout: 0, 
                    cleartype: true, 
                    next: '.slider-nav span.control-next a',
                    prev: '.slider-nav span.control-prev a',
                    pager:   'ul.slider-pagination',
                    pagerAnchorBuilder:     pagerFactory

                    });

        function pagerFactory(idx, slide) {
            return '<li><a href="#"></a></li>';
        };      

        });

回答1:


I found your solution over at the jquery forums:

http://forum.jquery.com/topic/jquery-cycle-pageranchorbuilder-not-working-with-livequery

the pager element seems to not work w/ cycle lite. the full cycle plugin is needed for that aspect.



来源:https://stackoverflow.com/questions/5002677/jquery-cycle-pageranchorbuilder-not-working-with-livequery

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!