There is only one way I could imagine achieving this, using serverside coding to serve the image (specifically PHP is what I have in mind) and then somehow pass whether it was loaded or not to say a script via AJAX? I'm not exactly sure what you're trying to achieve though.
I've the js code to do it in gecko and IE, but none so far to do it in Opera. The function is executed with the body's onload event, and check if some images where not properly loaded. It then sends this information to my server (some of the images are off site, and I need to be notified of recurrent problems).