Sometimes we can find some issues where some image has broken links, and it is really not a good idea to show the broken image to viewers. So here is a quick solution to these issue. We can overcome such difficulties with simple jquery snippets.
First, create a javascript function to replace the image
fixBrokenImages = function(url){ var img = document.getElementsByTagName('img'); var i=0, l=img.length; for(;i<l;i++){ var t = img[i]; if(t.naturalWidth === 0){ //this image is broken t.src = url; } } }
So, we need to call up the function in windows load