1

我有以下代码,无法在滑块上添加自动播放。谁能帮我这个?

jQuery

<script type="text/javascript">
            $(function() {
                $(".slider").jCarouselLite({
                    btnNext: ".next",
                    btnPrev: ".prev",
                    visible: 5
                });
            });

            $(document).ready(function(){
                $('img.captify').captify({                  
                    speedOver: 'fast',
                    speedOut: 'normal',                     
                    hideDelay: 500,                     
                    animation: 'slide',                     
                    prefix: '',                     
                    opacity: '0.7',                     
                    className: 'caption-bottom',                        
                    position: 'bottom',                     
                    spanWidth: '100%'
                });
            });

        </script>

如何在此滑块上添加自动播放

4

2 回答 2

3
$(function() { 
  $(".slider").jCarouselLite({
    auto:500,
    speed:800,
    btnNext: ".next",                     
    btnPrev: ".prev",                     
    visible: 5                 
  });             
}); 
于 2012-05-09T11:06:40.963 回答
1
$(".slider .jCarouselLite").jCarouselLite({
    auto: 800,
    speed: 1000
});
于 2012-05-05T12:15:53.687 回答