How to move to next slide programmatically?

蹲街弑〆低调 提交于 2019-12-24 08:38:47

问题


I am using the following code to initialize the supersized plugin:

$.supersized({
    slides  :   [ 
        { image : '<?php bloginfo('template_directory'); ?>/bkg/1.jpg', title : 'Image Credit: Anna Tifu' },
        { image : '<?php bloginfo('template_directory'); ?>/bkg/3.jpg', title : 'Image Credit: Anna Tifu' },
        { image : '<?php bloginfo('template_directory'); ?>/bkg/3.jpg', title : 'Image Credit: Anna Tifu' }
    ]
});

How can I tell my menu to navigate next and prev?

Something like this?

$("a").click(function (e) {
    e.preventDefault();
    slides.next();
});

回答1:


See this: http://buildinternet.com/project/supersized/docs.html#api_docs

You have 2 methods namely nextSlide() and prevSlide()



来源:https://stackoverflow.com/questions/8728390/how-to-move-to-next-slide-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!