I modified a pre-designed slideshow that I found here and I would like to edit it so that it autoplays without the user having to click the arrows. I’m not sure how to do this, however. Can you simulate clicks with jQuery? Is this the best way to do it?
Share
Here is the solution I came up with. It gets the current slide and advances every 3.5 seconds. This works specifically for 4 slides instead of the 5 slides that are shown in the tutorial. My script also accounts for reaching the final slide and looping back to the first one, as well as advancing from the most current slide if the user advances them on his/her own.
Each slide looks like this…
…with the checked = “checked” on the current slide. The value is 0, 1, 2, 3, …, n for each slide.