determine whether the image file is loaded

Giganews Newsgroups
Subject: determine whether the image file is loaded
Posted by:  Donjuan (yimin_s…@hotmail.com)
Date: Tue, 22 Jul 2003

Hi all
I have trouble with tracking whether my image file is loaded.
i use DHTML to change my image. HERE is the code:
<img name="someimage" src="1.jpg"
onclick="document.all.someimage.src='someimage.jpg">
but how can i determine whether "someimage.jpg" is loaded? and can i get the
download percent of a file?
Thanks in advance

Replies