Return to Snippet

Revision: 13539
at April 27, 2009 10:52 by conspirator


Initial Code
$.preloadImages = function() {
	for (var i = 0; i<arguments.length; i++) {
		img = new Image();
		img.src = arguments[i];
	}
}
$.preloadImages (
	"path_to_image_array",
	"path_to_image_array",
	"path_to_image_array"
);

Initial URL


Initial Description
I believe that Accrisoft has a fetch all images from db function built in, but you could always use some php to create the image array

Initial Title
jQuery Preload images

Initial Tags
jquery, images

Initial Language
jQuery