gpt4 book ai didi

javascript - 无法弄清楚如何将导航器与 Jssor Slider 一起使用

转载 作者:行者123 更新时间:2023-11-28 08:18:33 25 4
gpt4 key购买 nike

抱歉,即使有了网站上的所有帮助,我似乎仍然无法让导航器在我的页面上工作。我有以下 html:

<div id="bj3dd" style="left: 0px; top: 0px; width: 600px; height: 300px;">
<div data-slides="" u="slides" style="width: 600px; height: 300px;">
<div>
<img u="image" src="http://www.jssor.com/img/photography/002.jpg">
<img u="thumb" src="http://www.jssor.com/img/photography/002.jpg" style="width:50px;height:50px;">
</div>
<div>
<img u="image" src="http://www.jssor.com/img/photography/003.jpg">
<img u="thumb" src="http://www.jssor.com/img/photography/003.jpg" style="width:50px;height:50px;">
</div>
<div>
<img u="image" src="http://www.jssor.com/img/photography/004.jpg">
<img u="thumb" src="http://www.jssor.com/img/photography/004.jpg" style="width:50px;height:50px;">
</div>
<div>
<img u="image" src="http://www.jssor.com/img/photography/005.jpg">
<img u="thumb" src="http://www.jssor.com/img/photography/005.jpg" style="width:50px;height:50px;">
</div>
</div>
<span class="jssora03l" u="arrowleft"></span>
<span class="jssora03r" u="arrowright"></span>
<div class="jssort03" u="thumbnavigator" style="position: absolute; width: 600px; height: 60px; left: 0px; bottom: 0px;"></div>
</div>

使用以下js代码:

$(document).ready(function() {

var options = {

$AutoPlay: true,
$AutoPlaySteps: 1,
$AutoPlayInterval: 4000,
$DragOrientation: 1,
$ArrowKeyNavigation: true,
$ArrowNavigatorOptions: {
$Class: $JssorArrowNavigator$,
$ChanceToShow: 1,
$AutoCenter: 0,
$Steps: 1
},
$ThumbnailNavigatorOptions: {
$Class: $JssorThumbnailNavigator$,
$ChanceToShow: 2,
}

};
new $JssorSlider$('bj3dd', options);
});

尽我所能,我无法让导航器工作,请让我摆脱痛苦并告诉我我做错了什么!

最佳答案

<div id="bj3dd" style="left: 0px; top: 0px; width: 600px; height: 300px;">
<div data-slides="" u="slides" style="width: 600px; height: 300px;">
<div>
<img u="image" src="http://www.jssor.com/img/photography/002.jpg">
<img u="thumb" src="http://www.jssor.com/img/photography/002.jpg" style="width:50px;height:50px;">
</div>
<div>
<img u="image" src="http://www.jssor.com/img/photography/003.jpg">
<img u="thumb" src="http://www.jssor.com/img/photography/003.jpg" style="width:50px;height:50px;">
</div>
<div>
<img u="image" src="http://www.jssor.com/img/photography/004.jpg">
<img u="thumb" src="http://www.jssor.com/img/photography/004.jpg" style="width:50px;height:50px;">
</div>
<div>
<img u="image" src="http://www.jssor.com/img/photography/005.jpg">
<img u="thumb" src="http://www.jssor.com/img/photography/005.jpg" style="width:50px;height:50px;">
</div>
</div>
<!-- Arrow Navigator Skin Begin -->
<!-- Open 'skin\arrow-03.source.html' and copy arrow navigator skin here -->
<!-- Arrow Navigator Skin End -->

<!-- ThumbnailNavigator Skin Begin -->
<!-- Open 'skin\thumbnail-03.source.html' and copy thumbnail navigator skin here -->
<!-- ThumbnailNavigator Skin End -->
</div>

关于javascript - 无法弄清楚如何将导航器与 Jssor Slider 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23295212/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com