/ Published in: HTML
URL: http://www.arnoldb.com/2009/06/06/refresh-an-image-with-a-single-line-of-code/
This will refresh an image based on time, all in one line of code. Change the image name/path and the time to refresh in milliseconds.
Expand |
Embed | Plain Text
<img src=”image.jpg” id=”reloader” onload=”setTimeout(’document.getElementById(\’reloader\’).src=\’image.jpg?\’+new Date().getMilliseconds()’, 5000)” />
You need to login to post a comment.
