How replay an animated .gif header image on refresh
-
We have a non-looping animated .gif as the Home page header image, and it is intended to be non-looping.
But we now want it to replay/restart if the page is refreshed, but nowerdays everything is cached … and this means annimated.gifs tend not to replay.On searching for solutions, I see that if the site was written in native HTM we could use javascript to append a random number to the image src. e.g.
img.src = "your_image_url.gif"+"?a="+Math.random();
But it’s WordPress, so we can’t edit the inline code(or can we?).
We have the ‘scripts n styles’ app already installed, can we do something here?
How could we write a script to append/overwrite the header-image source?
The page I need help with: [log in to see the link]
- The topic ‘How replay an animated .gif header image on refresh’ is closed to new replies.