Forum Moderators: open
There is an onError attribute that can be used to detect if the image doesn't load. I'm not sure how supported this is though!
<img src="link/to/image.gif" alt="Alt Text" onError="imageError(this)" /><script type="text/javascript">
function imageError(element) {
element.style.border = '1px solid red';
}
</script>
In principle this should work, but I've not tested it!
HTH
[edited by: BlobFisk at 2:30 pm (utc) on April 17, 2008]