0
我已经为我的博客添加了一个新的模板,它有一个与博客相关的图像的滑块,问题是“滑块只在单击下一个按钮或上一个按钮时才运行”,我需要自动将其滑动帮我的话,我会感谢他们..如何将自动滑块功能添加到我的jQuery滑块?
的代码是:
<script type='text/javascript'>
jQuery(function() {
var Page = (function() {
var $navArrows = jQuery('#nav-arrows').hide(),
//$shadow = jQuery('#shadow').hide(),
slicebox = jQuery('#sb-slider').slicebox({
onReady : function() {
$navArrows.show();
//$shadow.show();
},
orientation : 'r',
cuboidsRandom : true,
easing : 'ease'
}),
init = function() {
initEvents();
},
initEvents = function() {
// add navigation events
$navArrows.children(':first').on('click', function() {
slicebox.next();
return false;
});
$navArrows.children(':last').on('click', function() {
slicebox.previous();
return false;
});
};
return { init : init };
})();
Page.init();
});
</script>