最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - SlidesJS Autoplay not working - Stack Overflow

programmeradmin0浏览0评论

I am trying to make autoplay work on a simple SlidesJS carousel: /

I checked out some other threads that answer similar problems but the solutions provided aren't working? Here is the script that is included in the file:

<script src=".9.1.min.js"></script>
<script src="/scripts/jquery.slides.min.js"></script>

<script>
$(function() 
{
    $('#slides').slidesjs(
    {
        play: 1000,
        pause: 10,
        hoverPause: true,
        width: 960,
        height: 540,
        navigation: 
        {
            effect: "fade"
        },
        pagination: 
        {
            effect: "fade"
        },
        effect: 
        {
            fade: 
            {
                speed: 400
            }
        }
    });
});
</script>

Any thoughts or ideas would be greatly appreciated.

I am trying to make autoplay work on a simple SlidesJS carousel: http://www.cycle22x./

I checked out some other threads that answer similar problems but the solutions provided aren't working? Here is the script that is included in the file:

<script src="http://code.jquery./jquery-1.9.1.min.js"></script>
<script src="/scripts/jquery.slides.min.js"></script>

<script>
$(function() 
{
    $('#slides').slidesjs(
    {
        play: 1000,
        pause: 10,
        hoverPause: true,
        width: 960,
        height: 540,
        navigation: 
        {
            effect: "fade"
        },
        pagination: 
        {
            effect: "fade"
        },
        effect: 
        {
            fade: 
            {
                speed: 400
            }
        }
    });
});
</script>

Any thoughts or ideas would be greatly appreciated.

Share Improve this question edited Jan 20, 2014 at 4:21 Lee Taylor 7,99416 gold badges37 silver badges53 bronze badges asked Jan 20, 2014 at 4:16 user3213741user3213741 331 silver badge5 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

you need to use auto: true to make it autoplay, like:

...
$('#slides').slidesjs({
   width: 940,
   height: 528,
   play: {
      active: true,
      auto: true,
      interval: 4000,
      swap: true,
      pauseOnHover: true,
      restartDelay: 2500
   }
});

See here:: Example Autoplay

发布评论

评论列表(0)

  1. 暂无评论