Commit 24dd1f4f by doszhang

dos

parent 2558b942
......@@ -32,7 +32,27 @@ function preloadimages(obj, complete_cb, progress_cb) {
}
}
}
preloadImageList = []
preloadImageList = [
window.base_resource_url + '/image2/result-1.jpg',
window.base_resource_url + '/image2/result-2.jpg',
window.base_resource_url + '/image2/result-3.jpg',
window.base_resource_url + '/image2/result-4.jpg',
window.base_resource_url + '/image2/result-5.jpg',
window.base_resource_url + '/image2/result-6.jpg',
window.base_resource_url + '/image2/result-7.jpg',
window.base_resource_url + '/image2/result-8.jpg',
window.base_resource_url + '/image2/result-9.jpg',
window.base_resource_url + '/image2/result-10.jpg',
]
if ($('div').length > 0) {
$.each($('div'), function (index, val) {
var img = $(val).css('background-image').replace(/^url\((['"]?)(.*)\1\)$/, '$2');
img = $.trim(img);
if (img && img.match(/[^/]+(jpg|png|gif)$/)) {
preloadImageList.push(img);
}
});
}
preloadimages(preloadImageList, function () {
init();
}, function (progress) {});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment