我想實現「flexslider」插件的手動控制。jquery Flexslider手動控制不起作用
這裏是我的代碼:
<body>
<div class="container">
<div class="columns row">
<div class="flexslider"><ul class="slides">
<li style="width: 100%; float: left; margin-right: -100%; display: none;"><img src="1.jpg"></li>
<li style="width: 100%; float: left; margin-right: -100%; display: none;"><img src="2.jpg"></li>
<li style="width: 100%; float: left; margin-right: -100%; display: none;"><img src="3.jpg"></li>
<li style="width: 100%; float: left; margin-right: -100%; display: list-item;"><img src="4.jpg"></li>
</ul><ol class="flex-control-nav"><li><a class="">1</a></li><li><a class="">2</a></li><li><a class="">3</a></li><li><a class="active">4</a></li></ol><ul class="flex-direction-nav"><li><a href="#" class="prev">Previous</a></li><li><a href="#" class="next">Next</a></li></ul></div>
</div>
<div class="columns row"><h2><strong>Bla bla bla</strong> Lorum lorum</h2></div>
<div class="columns row">
<div id="thumbnail">
<img width="100" border="0" style="margin: 0 16px 0 0" src="1.jpg">
<img width="100" border="0" style="margin: 0 16px 0 0" src="2.jpg">
<img width="100" border="0" style="margin: 0 16px 0 0" src="3.jpg">
<img width="100" border="0" style="margin: 0 16px 0 0" src="4.jpg">
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="../../javascripts/jquery.flexslider-min.js"></script>
<!-- Hook up the FlexSlider -->
<script type="text/javascript">
$(window).load(function() {
$('.flexslider').flexslider({
controlNav: true,
manualControls: "#thumbnail img"
});
});
</script>
我想有縮略圖的滑塊控件。我究竟做錯了什麼?
你可以把你的代碼到http://jsfiddle.net/請。 – Deadlykipper 2012-03-13 09:30:11
@Deadlykipper Heres the fiddle:http://jsfiddle.net/U3h5d/ – 2012-03-13 09:41:34
@Deadlykipper小提琴幫助理解我的問題嗎? – 2012-03-13 09:52:08