Autoplay JQuery slideshow Using cbpFWSlider

前端 未结 5 1070
一向
一向 2020-12-21 07:12

I\'m using cbpFWSlider and it doesn\'t appear to include an option for autoplay. I\'m pretty new to Jquery and have Googled to high heaven but have yet to find a solution. i

5条回答
  •  天命终不由人
    2020-12-21 07:59

    Check this, infinite

    $('document').ready(function(){
        $('#cbp-fwslider').cbpFWSlider();
        setInterval( function(){
            if($('.cbp-fwdots').find('span:last').hasClass('cbp-fwcurrent'))
                {
                $('.cbp-fwdots').find('span').click();
        }
        else{
                    $('.cbp-fwnext').click();   
            }
    } ,3000 );});
    

提交回复
热议问题