N
Nick
How to change the pic to a "show error" image when loading images failed
- for example, no image file exists?
I tried to add the following statement in the onload event function:
if (!document.images.AImage.complete) { document.images.AImage.src =
"error.gif"; }
However, I found that a lot of images can be successfully loaded will
also be replaced with the "error.gif".
After remove above line, these exist images can be show successfully.
But I want to change the non-exist images src to the error.gif....
- for example, no image file exists?
I tried to add the following statement in the onload event function:
if (!document.images.AImage.complete) { document.images.AImage.src =
"error.gif"; }
However, I found that a lot of images can be successfully loaded will
also be replaced with the "error.gif".
After remove above line, these exist images can be show successfully.
But I want to change the non-exist images src to the error.gif....