[thelist] replacing a broken image with a default image

Christian Heilmann codepo8 at gmail.com
Wed Dec 14 15:22:20 CST 2005


> You can use JavaScript to test for the existence of the image, if it does
> not exist then you can replace with a default image. There will have to be a
> test for each image

Careful with that, MSIE has the nasty habit of not triggering onload
on cached images, which means when you load the page the second time
it'll replace already loaded images with the "broken image" image.

Just another annoyance MSIE offers us.

--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/



More information about the thelist mailing list