Comments (4)
BTW, what I did was to just add this code to the end of the function:
var bjqsGo = function (direction, position) {
//....
}
// Exposes the bjqsGo function
this.bjqsGo = bjqsGo;
return this;
Note that you need to save a reference to the bjqs instance:
var ref = $('#my-slideshow').bjqs({
// options
});
Otherwise, every time you call the bjqs() function you will get another instance of it over the old one.
Now that you have a reference, you can call:
// Go forward
ref.bjqsGo('forward', false);
// Go backward
ref.bjqsGo('backward', false);
from basic-jquery-slider.
Hey, thanks for the feedback, I completely agree!
I have a new version of bjqs which is very close to release, I completely rebuilt the code-base and included a bunch of new features - exposing the 'go' function is one of them :)
Thanks again for taking the time to provide feedback, and thanks for using the slider.
from basic-jquery-slider.
Hi there, we've hooked a click event on the navigation buttons to simulate this function, e.g. to enable swiping for the slider:
$('#slider').bind('swipeleft', function() {
$('#slider a.bjqs-next').trigger('click');
});
$('#slider').bind('swiperight', function() {
$('#slider a.bjqs-prev').trigger('click');
});
You could easily adjust this code to "jump" to slides.
from basic-jquery-slider.
Have noted this, marked as future update, and will endeavour to include it in the next update. Thank guys :)
from basic-jquery-slider.
Related Issues (20)
- Webapp for slider?
- Additional animations and random animation setting
- Don't need loop
- Not showing if only one <li>
- after refresh, slider not load HOT 1
- How to use twise in same page HOT 3
- Slider doesn't completely eliminate previous image from screen
- Non-minified bjqs.js not working
- IE Compatibility
- How to start with 2nd or 3rd index image. HOT 2
- Index of Current Slide
- Adding callback functions for next and previous
- wrapping image in <a> breaks caption
- Different captions style
- Vertical scroll on touch screens being stopped by slider
- Any chance of a full 2015 update please for this great slider HOT 2
- Last slide AJAX not working when animation set to 'slide'
- Move Numbered slide markers to the top of slider
- Slider responsive, height stuck at image dimensions HOT 1
- simple solution for not showing with one slide and $canvas error
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 basic-jquery-slider.