How can I make a slideshow using the dynamic panel?

Carlos shared this question 6 years ago

I'm trying to simulate a slideshow in my home page using the dymanic panel for the different slides. Its the typical slideshow where each image is automatically shown for some seconds, automatically changing to the next image, but allowing the user to use the arrows aswell to change from one image to the other.

Changing to the next image using the arrows is no problem. But how can I create the event of changing to the next image after the image is shown for x seconds? If I use "on page download" and use a pause, it won't work since it will follow a fix sequence independently of whether and when the user has changed to a different image. I would need an event like "when image is shown, pause x second, show image 2".