Javascript responsiveslides.js-自动不工作
我正在使用这个脚本添加响应幻灯片到一个小网站。我还没有找到一个完美的幻灯片脚本,我怀疑它是否存在。我已经从owl slider、flux slider到jquery basic slider,现在我来到responsiveslides.js(responsiveslides.com/) 我的问题是,我不能让自动设置工作。这是我启动插件的代码:Javascript responsiveslides.js-自动不工作,javascript,jquery,slider,slideshow,Javascript,Jquery,Slider,Slideshow,我正在使用这个脚本添加响应幻灯片到一个小网站。我还没有找到一个完美的幻灯片脚本,我怀疑它是否存在。我已经从owl slider、flux slider到jquery basic slider,现在我来到responsiveslides.js(responsiveslides.com/) 我的问题是,我不能让自动设置工作。这是我启动插件的代码: $(".rslides_home").responsiveSlides({ 'pause':true }); 此设置应停止动画,我只希望每次单击
$(".rslides_home").responsiveSlides({
'pause':true
});
此设置应停止动画,我只希望每次单击都能滑动动画。但它一点作用也没有。不过,更改默认设置可以完成此任务
有人知道如何解决这个问题吗?您使用了错误的选项。“暂停”在滑块中有不同的含义。 “自动”选项定义滑块是否自动播放
$(".rslides_home").responsiveSlides({
auto: false
});
以下是为滑块定义的选项。如您所见,“暂停”选项在您希望滑块在悬停时停止时使用
$(".rslides").responsiveSlides({
auto: true, // Boolean: Animate automatically, true or false
speed: 500, // Integer: Speed of the transition, in milliseconds
timeout: 4000, // Integer: Time between slide transitions, in milliseconds
pager: false, // Boolean: Show pager, true or false
nav: false, // Boolean: Show navigation, true or false
random: false, // Boolean: Randomize the order of the slides, true or false
pause: false, // Boolean: Pause on hover, true or false
pauseControls: true, // Boolean: Pause when hovering controls, true or false
prevText: "Previous", // String: Text for the "previous" button
nextText: "Next", // String: Text for the "next" button
maxwidth: "", // Integer: Max-width of the slideshow, in pixels
navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul'
manualControls: "", // Selector: Declare custom pager navigation
namespace: "rslides", // String: Change the default namespace used
before: function(){}, // Function: Before callback
after: function(){} // Function: After callback
});
这些选项取自您能解释一下吗?