JQUERY - 在图像末尾停止滑块

时间:2012-06-22 11:21:35

标签: jquery slider

我将这个插件用于滑块

网站> http://basic-slider.com/documentation/ 脚本> https://github.com/jcobb/basic-jquery-slider/blob/807132214df170e1726e05f272fb75649687f268/js/basic-jquery-slider.js

基本配置带有循环滑块,不会停在图像的末尾。 可以更改/编辑相同的参数以允许这个吗?

感谢

1 个答案:

答案 0 :(得分:1)

显然不是

defaults = {
// Width + Height used to ensure consistency
                width: 700,
                height: 300,
// The type of animation (slide or fade)
                animation: 'fade',
                // The duration in ms of the transition between slides
                animationDuration: 450,
                // Automatically rotate through the slides
automatic: true,
// Delay in ms between auto rotation of the slides
                rotationSpeed: 4000,
// Pause the slider when any elements receive a hover event
                hoverPause: true,
// Show the manual slider controls
                showControls: true,
// Center the controls vertically
                centerControls: true,
// Text to display in next/prev buttons
                nextText: 'Next',
                prevText: 'Prev',
// Show positional markers
                showMarkers: true,
// Center the positional indicators
                centerMarkers: true,
// Allow navigation with arrow keys
                keyboardNav: true,
// Use image title text as caption
                useCaptions: true
            }

另外,这不是滑块的想法,你可能应该使用一个画廊插件或其他东西,也许你会在这里找到一个:http://vandelaydesign.com/blog/web-development/jquery-image-galleries/