jQuery code snippet to either display a default image for those that are broken or detect and hide all broken images. Hide all those red crosses! ;)
// Replace source
$('img').error(function(){
$(this).attr('src', 'missing.png');
});
// Or, hide them
$("img").error(function(){
$(this).hide();
});
$('img').error(function(){
$(this).attr('src', 'missing.png');
});
// Or, hide them
$("img").error(function(){
$(this).hide();
});


Pingback: jQuery Detect and Hide Broken Images | Web Design Northamptonshire
Pingback: Use jQuery to Replace Broken Images using AJAX | jQuery4u
Pingback: Fehlende Bilder mit jQuery nachbearbeiten - Webworking