Timer change image

I would like to know if it is possible for the carousel image or image inside bloc, to change every 24 hours, how I do this?

A carousel isn’t the best option for what you’re trying to do. As the name suggests, a carousel is a set of images/texts that revolve either on user command (forward and back arrows) or on a timed sequence, or both. Even if you selected the timed sequence and set the duration to 86,400,000 Milliseconds (24 hours), your visitors will never see the subsequent images unless they leave the page open on screen for 24 hours. This is because the timer function of the carousel will always start when the page loads.

What you need is a piece of javascript that can automatically display an image based on date, time or day of the week. This isn’t a standard feature in Blocs, but it is possible to implement the code within a blocs page. Maybe someone more conversant with javascript will come along with a specific solution for you. Meanwhile, you may like to check out a couple of third-party forum posts on the subject HERE and HERE

1 Like