/ Published in: jQuery
Expand |
Embed | Plain Text
// Preloader $(window).bind('load', function(){ var preload = [ '/assets/images/alert_ticked.jpg', '/assets/images/alert_unticked.jpg' ]; $(document.createElement('img')).bind('load', function(){ if(preload[0]) this.src = preload.shift(); }).trigger('load'); });
You need to login to post a comment.
