and vice versa.
Instead of using the left and right arrow keys, I have buttons that call the functions of nextImage() and previousImage().
Here’s the problem: I want the user to be able to jog through all the images and when they hit the last one, the next “next” click takes them to the beginning.
-and-
if the user is on the first image, clicking the “back button” takes them to the last image.
One more thing. --------------->
I need to interval (myInterval) to reset (but not stop the slideshow) everytime a “back” or “next button” is clicked.
I’ve tried the clearInterval(myInterval), but no luck.
I’ve attached all the files that I am working with.
Thank you in advance for all of your help.