I\'m using JavaScript with the jQuery library to manipulate image thumbnails contained in a unordered list. When the image is loaded it does one thing, when an error occurs
Use imagesLoaded javascript library.
Usable with plain Javascript and as a jQuery plugin.