Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add buttons (prev/next) to the slider #7

Open
rhysothehero opened this issue Oct 7, 2014 · 3 comments
Open

How to add buttons (prev/next) to the slider #7

rhysothehero opened this issue Oct 7, 2014 · 3 comments

Comments

@rhysothehero
Copy link

I know this isn't really an issue but I am using this slider for a school project (instead of PowerPoint) and I need to add visible buttons to the page so that you can click next or previous (rather than the keyboard keys) and move through the slides. Is this achievable and if so how?

Any help would be hugely appreciated.

@mbriskar
Copy link

For anyone who would get into the problem. I made it work by simulating keys (left/right) and it works OK in my case.

@casperovergaard
Copy link

@mbriskar I'm looking into this, would you care to share how you achieved this?

@casperovergaard
Copy link

For any other looking into this, I solved it by adding the following event handling right after the keyboard navigation events in dragslideshow.js

// Replace with the ID of your navigation of choice document.getElementById("next").onclick = function() { self.dd.setStep( self.current + 2 ); };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants