Thumbnail pager - method 1
JS:
$('.bxslider').bxSlider({
pagerCustom: '#bx-pager'
});
HTML:
<style type="text/css">
#bx-pager {
text-align: center;
margin-top: -30px;
}
#bx-pager a {
margin: 0 3px;
}
#bx-pager a img {
padding: 3px;
border: solid #ccc 1px
}
#bx-pager a.active img {
border: solid #5280DD 1px;
}
</style>
<ul class="bxslider">
<li><img src="http://placehold.it/900x200&text=FooBar1" /></li>
<li><img src="http://placehold.it/900x200&text=FooBar2" /></li>
<li><img src="http://placehold.it/900x200&text=FooBar3" /></li>
</ul>
<div id="bx-pager">
<a data-slide-index="0" href=""><img src="http://placehold.it/73x73&text=1" /></a>
<a data-slide-index="1" href=""><img src="http://placehold.it/73x73&text=2" /></a>
<a data-slide-index="2" href=""><img src="http://placehold.it/73x73&text=3" /></a>
</div>
Note that the parent element (#bx-pager in this example), must contain
an <a> tag for each slide. Each <a> tag
must have a data-slide-index attribute that references the respecitve slide
index (zero-based). See the HTML in this example. Also note that this method should
not be used for dynamic carousels. See here for
a method to be used with dynamic carousels.
Examples
- Image gallery with captions
- Auto show with start / stop controls
- Manual show without infinite loop
- Slidehow using adaptiveHeight
- Carousels demystified - in depth explanation with examples
- Carousel - static number of slides showing
- Carousel - dynamic number of slides showing
- Thumbnail pager - method 1
- Thumbnail pager - method 2
- Vertical slideshow
- Custom next / prev control selectors
- Multiple slideshows
- Callback API
- Public methods
- Ticker