...

View Full Version : Dynamic Images and download status



quantass
01-27-2005, 10:35 PM
Im using an <IMG> tag and am modifying the .src propertty to dynamically change the image on screen. I also make use of a timer to help update the <IMG> but at times downloading the image can take longer than the timer. Is there a way to check the load status of an image, that is, if it is currently downloading, completed downloading, or just plain failed?

glenngv
01-31-2005, 06:14 AM
<img src="image.gif" onload="alert('loaded!')" onerror="alert('error!')" />

http://www.codingforums.com/showthread.php?p=267816#post266237



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum