Posted By

silentpro on 07/30/11


Tagged

javascript js textmate script jquery preload images load


Versions (?)

Preload Images


 / Published in: Other
 

  1. // Preload Images
  2.  
  3. jQuery.preloadImages = function()
  4. {
  5. for(var i = 0; i").attr("src", arguments[i]);
  6. }
  7. };
  8.  
  9. // Usage
  10. $.preloadImages("image1.gif", "/path/to/image2.png", "some/image3.jpg");

Report this snippet  

You need to login to post a comment.