我有一组图像:
<ul>
<li id="angle1" class="first scroll-img1-wrap" style="display:block;">
<img src="img/scroll/img1.png">
</li>
<li id="angle2" class="scroll-img2-wrap">
<img src="img/scroll/img2.png">
</li>
<li id="angle3" class="scroll-img3-wrap">
<img src="img/scroll/img3.png">
</li>
<li id="angle4" class="scroll-img4-wrap">
<img src="img/scroll/img4.png">
</li>
</ul>
我有一个 jQuery 标准滑块。
我想在移动滑块时在图像之间切换:
$( ".slider" ).slider({
animate: true,
range: "min",
value: 10,
min: 10,
max: 40,
step: 10,
slide: function( event, ui ) {
$( "#slider-result" ).html( ui.value );
},
change: function(event, ui) {
}
});
我怎样才能做到这一点?