function preload(imgs) { $(imgs).each(function(index, value){ $('<img />').attr('src',value).appendTo('body').css('display','none'); }); }
.attr('src',value)
not
.attr('src',this)
просто указать:)