quick question. I am trying to use either javascript, jquery, or php to make it so when I click a link, it replaces a static image on my page with another image, for 15 seconds, then reverts back to the original image. What would be the best way to go about this?
Share
You could do a simple timeout for this:
Alternatively, if you wanted a fade, have the other image absolutely positioned, like this:
Then jQuery like this:
Make sure the images have the same dimensions(for looks, this is optional), the temp image will fade in on top of the static image, wait 15 seconds, then fade out.