<script type="text/javascript">
$().ready(function() {
$('img#beacon').attr('src', 'http://sstatic.net/so/img/so/logo.png')
.load(function() { alert('Image Loaded'); })
.error(function() { alert('Error Loading Image'); });
});
</script>
This will load the Stackoverflow logo.
If it loads successfully, the alert('Image Loaded'); is performed
if it fails, the alert('Error Loading Image'); is performed
of course, either of these can be replaced with your own functions.
As a new user, it refused my image tag; but the image tag should only contain the id='beacon' attribute; unless you want to add a class. We're setting the 'src' attribute in code here, typically images that you are monitoring for completion have src values that are set programatically anyway.