【发布时间】:2010-12-06 17:57:19
【问题描述】:
我使用 AnySlider(有趣的玩具)作为网站,其中面板是网站的页面。因此,我想禁用并删除“开始/停止”按钮,但保留导航的其余部分。我的印象是它是导航的一部分,无法选择。如果正确,我该怎么做?
其实我也想把导航移到面板的右上角。
干杯
【问题讨论】:
标签: javascript html anythingslider
我使用 AnySlider(有趣的玩具)作为网站,其中面板是网站的页面。因此,我想禁用并删除“开始/停止”按钮,但保留导航的其余部分。我的印象是它是导航的一部分,无法选择。如果正确,我该怎么做?
其实我也想把导航移到面板的右上角。
干杯
【问题讨论】:
标签: javascript html anythingslider
完全移除“开始/停止”按钮:
buildStartStop: false
(没有隐藏,没有技巧,只是删除)
【讨论】:
来自此处的示例: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();
隐藏播放/停止按钮,但仍在使用自动播放:
startText : '',
stopText : '',
【讨论】:
狗的叫声。这是一个选项:
autoPlay : false,
【讨论】: