【问题标题】:How to remove left/right nav buttons from the super.simple.slider如何从 super.simple.slider 中删除左/右导航按钮
【发布时间】:2015-03-03 16:38:57
【问题描述】:

您好,我有一个网格布局,大部分正方形都有滑块。正如您在下面看到的,我的 jquery 有两个部分,因为我有两个具有 2 种不同效果的不同滑块。在其中一个滑块中,我想关闭导航按钮,我认为这在 jquery 的 ShowNav 选项下非常简单,但这不起作用。谁能告诉我我做错了什么?

我已经包含了一个livelink here,我将在问题得到解答后将其删除,以供后人使用。

$(function(){

$('.slider').sss({
slideShow : true, // Set to false to prevent SSS from automatically animating.
startOn : 0, // Slide to display first. Uses array notation (0 = first slide).
transition : 800, // Length (in milliseconds) of the fade transition.
speed : 40000, // Slideshow speed in milliseconds.
showNav : true // Set to false to hide navigation arrows.
});


$('.slider2').sss({
slideShow : true, // Set to false to prevent SSS from automatically animating.
startOn : 0, // Slide to display first. Uses array notation (0 = first slide).
transition : 400, // Length (in milliseconds) of the fade transition.
speed : 20000, // Slideshow speed in milliseconds.
showNav : false // Set to false to hide navigation arrows.
});
});

HTML

<div class="trigger">
        <div tabindex="0" class="maincontent static"><div class="slider2">
<img src="slide1.png" height="200" width="200" />
<img src="slide2.png" height="200" width="200" />
<img src="slide3.png" height="200" width="200" />
<img src="slide4.png" height="200" width="200" />
</div></div>
    </div>

【问题讨论】:

    标签: javascript jquery html navigation slider


    【解决方案1】:

    我查看了他们的代码,看起来他们将“showNav”更改为“箭头”

    var settings = $.extend({
    slideShow : true,
    startOn : 0,
    speed : 3500,
    transition : 400,
    arrows : true
    }, options);
    

    尝试更改该选项,您应该一切顺利。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-19
      • 1970-01-01
      相关资源
      最近更新 更多