如何控制具有相同上一个,下一个按钮的两张幻灯片?当我单击上一个/下一个按钮时,我希望两张幻灯片都移动..如何实现此功能?
JS 斌:http: //jsbin.com/osogig/1/edit
$(function() {
$("#slides, #slides1").slides({
generatePagination : false,
height : 50
});
});
<div id="slides">
<div class="slides_container">
<div>sample text 1</div>
<div>sample text 2</div>
<div>sample text 3</div>
<div>sample text 4</div>
</div>
<a href="#" class="next"> Next </a> <a href="#"
class="prev"> Prev </a>
</div>
<div id="slides1">
<div class="slides_container">
<div>
Lorem ipsum dolor sit amet <br /> Lorem ipsum dolor sit amet <br />
Lorem ipsum dolor sit amet <br />
</div>
<div>
Lorem ipsum dolor sit amet <br /> Lorem ipsum dolor sit amet <br />
Lorem ipsum dolor sit amet <br />
</div>
<div>
Lorem ipsum dolor sit amet <br /> Lorem ipsum dolor sit amet <br />
Lorem ipsum dolor sit amet <br />
</div>
<div>
Lorem ipsum dolor sit amet <br /> Lorem ipsum dolor sit amet <br />
Lorem ipsum dolor sit amet <br />
</div>
</div>
</div>