Skip to content

Instantly share code, notes, and snippets.

@EragonJ
Created December 8, 2009 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EragonJ/251380 to your computer and use it in GitHub Desktop.
Save EragonJ/251380 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
var w = new Array();
var preload = new Array();
mylength=$(".popshow img").size();
$(".popshow img").each(function(e){
temp=$(this).clone();
w[e]=temp;
preload[e] = new Image();
preload[e].src = $(w[e]).attr('rel');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment