【问题标题】:How do I set custom text for the navigation buttons in Jquery anythingslider?如何为 Jquery 中的任何内容滑块中的导航按钮设置自定义文本?
【发布时间】:2013-07-25 21:49:04
【问题描述】:

我最近开始使用 Jquery anyslider,直到现在我都很喜欢它。

我只是想是否可以将出现在导航按钮(1,2 等)上的默认文本更改为一些自定义文本。

谢谢。

【问题讨论】:

    标签: anythingslider


    【解决方案1】:

    使用navigationFormatter option

    $('#slider2').anythingSlider({
      // Format navigation labels with text
      navigationFormatter : function(index, panel){
        return ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2'][index - 1];
      }
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-19
      • 2023-02-14
      • 1970-01-01
      • 1970-01-01
      • 2013-05-09
      相关资源
      最近更新 更多