resetting bxSlider

前端 未结 9 1616
滥情空心
滥情空心 2021-01-06 06:45

I took a different direction with a carousel I implemented, opting for bxSlider instead of jCarousel. This is for an image gallery I am building http://rjwcollective.com/equ

9条回答
  •  既然无缘
    2021-01-06 07:48

    Declaring the "mySlider" variable outside the document-ready block solved the problem for me:

    var mySlider;
    $(function(){
        mySlider= $('#slider').bxSlider({
            auto: true,
            controls: true
        });
    
        mySlider.reloadShow();
    })
    

    Alex

提交回复
热议问题