jquery 预加载图片
$(document).ready(function() {
jQuery.preloadImages = function() {
for(var i = 0; i < arguments.length; i++) {
$("<img>").attr("src", arguments[i]);
}
}
// how to use
$.preloadImages("image1.jpg");
});
posted on 2011-02-20 14:09 GeorgeWang 阅读(188) 评论(0) 编辑 收藏 举报