javascript - Add Autoplay jquery slide - Stack Overflow

I have the code following where I am unable to add Autoplay on the slider. Can anyone help me with this

I have the code following where I am unable to add Autoplay on the slider. Can anyone help me with this?

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>

How can I Add Autoplay on this slider

I have the code following where I am unable to add Autoplay on the slider. Can anyone help me with this?

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>

How can I Add Autoplay on this slider

Share Improve this question edited May 5, 2012 at 12:13 Jhilom asked May 5, 2012 at 11:57 JhilomJhilom 1,0282 gold badges15 silver badges34 bronze badges 2
  • please add a demo at jsfiddle – coder Commented May 5, 2012 at 12:05
  • I am unable to add demo there. This is the site from where I downloaded the the code. But the slide doesn't play automatically. onextrapixel./examples/… – Jhilom Commented May 5, 2012 at 12:19
Add a ment  | 

2 Answers 2

Reset to default 3
$(function() { 
  $(".slider").jCarouselLite({
    auto:500,
    speed:800,
    btnNext: ".next",                     
    btnPrev: ".prev",                     
    visible: 5                 
  });             
}); 
$(".slider .jCarouselLite").jCarouselLite({
    auto: 800,
    speed: 1000
});

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745380392a4625196.html

相关推荐

  • javascript - Add Autoplay jquery slide - Stack Overflow

    I have the code following where I am unable to add Autoplay on the slider. Can anyone help me with this

    9小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信