Comments (5)
Since the plugin is flexible, there many ways to achieve this. Here is one way:
HTML:
<ul id="main-slider"> <li>slide 1</li> <li>slide 2</li> <li>slide 3</li> <li>slide 4</li> </ul> <ul id="thumb-slider"> <li><a href="" index="0"><img src="image1.jpg" /></a></li> <li><a href="" index="1"><img src="image2.jpg" /></a></li> <li><a href="" index="2"><img src="image3.jpg" /></a></li> <li><a href="" index="3"><img src="image4.jpg" /></a></li> </ul>
jQuery:
$(function(){ var main_slider = $('#main-slider').bxSlider({ controls: false }); var thumbs_slider = $('#thumb-slider').bxSlider({ displaySlideQty: 3, moveSlideQty: 3 }); $('#thumb-slider a').click(function(event) { var index = $(this).attr('index'); main_slider.goToSlide(index); return false; }); });
As I said, there are many different ways to do this - let me know how it works out for you!
from bxslider-3.
That worked pretty good! Thank you for the help! There is one issue, however — If you set the main slider to "auto slide", there needs to be a way to connect the current slide with the associated thumbnail image. I was trying to utilize the public functions, but there is not much documentation on how to implement that.
Again, I'm new to javascript development so any ideas would be helpful!
from bxslider-3.
Oops. Didn't mean to "close" this.
from bxslider-3.
Hello any fix for this. I also experience this problem once I click the thumb the current slide doesn't change but refreshes the current page
from bxslider-3.
Hi there. If I use the sample above, the thumbnail goes full width. Is there a fix for this? Thanks!
from bxslider-3.
Related Issues (20)
- bxSlider 4.1.2 freezes on touch devices
- bxslider showing blank slides
- Vimeo videos not autoplaying in the slider
- Bxslider not loading HOT 1
- goToSlide(); not working in mode vertical HOT 1
- Multiple cloned sliders being generated with multiple sliders on the same pages
- Hi all, bx slider is not working within a fancybox. can any one help me with this issue?
- reloadSlider() keeps adding onto itself HOT 1
- Issue with colorbox + smoothzoom
- Page refresh brings me to the slider HOT 1
- Removing "alt" from bx-clone (duplicated images when infinite loop is true)
- Touch swipe stops slideshow HOT 3
- bxslider
- Bx slider
- Missing ; semi-colon at the end of jquery.bxSlider.min.js
- fade mode bug > same slide and onSlideAfter not working HOT 1
- Fade mode breaks width HOT 1
- bxslider swipe issue on mobile
- Rapid clicking next/prev displays incorrect pager item below.
- i am working on translating a WordPress website with theme storevilla and the banner dos not appear in the rtl translation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bxslider-3.