Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(images).load(function() {
- // fire this function when an image has loaded
- // All finished!
- $(this).addClass('processed')
- }).error(function() {
- // fire this when image fails to load. ex) bad url?
- }).each(function() {
- // image could be cached, so your load function will never fire
- // So check with this:
- if ($(this).is(':not(.processed)') && isIE && this.complete) {
- $(this).trigger('load');
- }
- })
Add Comment
Please, Sign In to add comment