【问题标题】:I want to remove the Start/Stop button in Anythingslider, but leave the rest of the navigation我想删除 Anythingslider 中的开始/停止按钮,但保留导航的其余部分
【发布时间】:2010-12-06 17:57:19
【问题描述】:

我使用 AnySlider(有趣的玩具)作为网站,其中面板是网站的页面。因此,我想禁用并删除“开始/停止”按钮,但保留导航的其余部分。我的印象是它是导航的一部分,无法选择。如果正确,我该怎么做?

其实我也想把导航移到面板的右上角。

干杯

【问题讨论】:

    标签: javascript html anythingslider


    【解决方案1】:

    完全移除“开始/停止”按钮:

    buildStartStop: false
    

    (没有隐藏,没有技巧,只是删除)

    【讨论】:

      【解决方案2】:

      来自此处的示例:http://css-tricks.com/examples/AnythingSlider/

      第二个例子没有按钮。如果您阅读了来源:

              $('#slider2').anythingSlider({
                  width               : 600,       // if resizeContent is false, this is the default width if panel size is not defined
                  height              : 350,       // if resizeContent is false, this is the default height if panel size is not defined
                  resizeContents      : false,     // If true, solitary images/objects in the panel will expand to fit the viewport
                  autoPlay            : false,     // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
                  navigationFormatter : formatText // Format navigation labels with text
              })
      

      看看自动播放。它显然负责启动/停止功能,包括按钮。

      【讨论】:

      • 刚刚注意到...感谢您的意见。
      • 你总是可以这样做的:$('.start-stop').hide();
      • 此选项适用于旧版本的 AnythingSlider。 Asaf 有最新版本的答案@github.com/ProLoser/AnythingSlider
      【解决方案3】:

      隐藏播放/停止按钮,但仍在使用自动播放:

      startText           : '',
      stopText            : '',
      

      【讨论】:

        【解决方案4】:

        狗的叫声。这是一个选项:

        autoPlay : false,
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2022-01-09
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多