我正在使用 Foundation 框架和 Orbit。我在这里建立了滑块:http ://www.abricot-production-dev.co.uk/group-two/gallery.html# 但目前拇指并没有改变主要图片。
我的代码:
<div id="slider">
<img src="images/slider/image-01.jpg" data-thumb="image-01.jpg" data-caption="#captionOne"/>
<img src="images/slider/image-02.jpg" data-thumb="image-02.jpg" data-caption="#captionTwo"/>
<img src="images/slider/image-03.jpg" data-thumb="image-03.jpg" data-caption="#captionThree"/>
</div>
<span class="orbit-caption" id="captionOne">Here is another caption...</span>
<span class="orbit-caption" id="captionTwo">Here is a caption 2...</span>
<span class="orbit-caption" id="captionThree">And here is a caption 3...</span>
<ul class="orbit-bullets">
<li class="has-thumb" style="background-image: url(images/slider/thumbs/image-01.jpg); background-position: initial initial; background-repeat: no-repeat no-repeat; ">1</li>
<li class="has-thumb" style="background-image: url(images/slider/thumbs/image-02.jpg); background-position: initial initial; background-repeat: no-repeat no-repeat; ">2</li>
<li class="has-thumb" style="background-image: url(images/slider/thumbs/image-03.jpg); background-position: initial initial; background-repeat: no-repeat no-repeat; ">3</li>
</ul>
</div>
初始化:
<script>
$(window).load(function() {
$("#slider").orbit();
});
</script>
在foundation.min.js中:
bullets:!1, bulletThumbs:!0, bulletThumbLocation:"../images/slider/thumbs/"
我错过了什么?
安迪