Page is a not externally linkable
Achernar - 5:22 pm on Apr 15, 2008 (gmt 0)
Basically, you end each page with: function imgOK(e){ for (var i=0,e;e=document.images[ i ];i++) {addEvent(e,'error',imgE);addEvent(e,'load',imgOK)} addEvent() is a standardized method for addEventListener() (Mozilla) and attachEvent() (IE) You add a body.onload event that loops through the images and detects which have failed. Once done, you can report failed urls to your server by requesting a dummy image with urls as parameters (after '?'). When you parse you server logs you'll notice all image errors (temporary and permanent). [edited by: Achernar at 5:23 pm (utc) on April 15, 2008]
On one of my sites I've set up a javascript system that notifies the site when images have failed to load.
<script type="text/javascript">chkI()</script>
and define chkI()
function chkI(){
function imgE(e){
e=e¦¦event;
e=e.target¦¦e.srcElement;
if(e.Cap)return;
e.OK=0;e.Cap=1
}
e=e¦¦event;
e=e.target¦¦e.srcElement;
e.OK=1;e.Cap=1
}
}