I am using a testimonial rotator plugin, it works well but I would like to add forward and back buttons but I am not sure where to start. Here is all the code i question: code on jsfiddle
Any help appreciated
regards Ash
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OK, I put together some listeners inside the loop and after quick testing appears to work! Here’s the js Fiddle: http://jsfiddle.net/BLNZ7/
The idea is to give element ids to the “previous” and “next” buttons or links. (no, I’m not too creative with these IDs)
Then reference them when creating the rotator:
The listeners inside the rotator just call gotoNext and reset the “time buffer”, and there’s a new, similar function, gotoPrev, that I added.