Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 16th, 2012  |  syntax: None  |  size: 0.65 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div id=statusloadimage>
  2. </div>
  3. <br />
  4. <div id=container>
  5.    
  6.     <img id=img1 src="https://www.fotoblur.com/api/resize?id=329219&width=198&height=154&v=3" />
  7.     <img id=img2 src="https://www.fotoblur.com/api/resize?id=324900&width=198&height=154&v=0" />
  8.     <img id=img3 src="https://www.test.com/notfound.jpg" />
  9.    
  10. </div>
  11.  
  12. $(function() {
  13.  
  14.     var options = {
  15.         callback: function(i, e) {
  16.             $('#statusloadimage').html('Images have loaded. ' + (e ? 'with errors' : 'all image ok load'));
  17.         },
  18.         imageError: 'http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif'
  19.     };
  20.  
  21.     $('#container').waitImagesComplete(options);
  22. });