Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I start a gif animation that outputs a random image using a button?

animation button GIF image outputs
0
Posted

How do I start a gif animation that outputs a random image using a button?

0

Ok, I am really out of my league on this but here is what I want to do, just have no idea how to do this in iWeb: 1. I created a gif animation file in photoshop (7 frame gif image) that I want to start when a user clicks an html button. 2. As a result of the button click, the gif animation starts and when it has completed, a random image is shown immediately that is adjacent to my animated gif image. 3. Once this cycle has completed the user can click on my html button again and start the sequence over as many times as they wish and a new random image would appear as a result. In summary, I assume that am html button onclick event attribute could call multiple functions that would 1) start my gif animation then 2) once that animation is complete, produce a random image and 3) return the initail state that allows the user the click the button again and start the whole process over again. Now I have done plenty of research on html snippets and found several examples of javascript functio

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123