Jquery preload images 1 trough 40
This question already has an answer here:
function preload(arrayOfImages){
$(arrayOfImages).each(function(){
(new Image()).src = this;
});
for(i=1;i<=40;i++)
preload('/img/wallpapers/'images' + i + '.jpg');
链接地址: http://www.djcxy.com/p/12078.html
上一篇: 如何命名资源标识符?
下一篇: jquery预加载图像1槽40