14
May
Check if image exist
I ran into some problems that I don’t want to show these horrible looking red cross images in Internet Explorer when an image doesn’t exists. And it turns out it’s really easy to solve this problem. You can just use the onerror attribute of the img tag. Having jquery, you could really easily just put a $(this).hide(); in the onerror attribute and the image is automatically hidden when it can’t be loaded.

Wow! Thank you very much!
I always wanted to write in my site something like that. Can I take part of your post to my blog?
Of course, I will add backlink?
Regards, Timur I. Alhimenkov
Very interesting. I’ll surf you blog. Will it be continued?