From 98814201f756ad2291c7ac80ce807cfd7b792e88 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sat, 16 Feb 2008 13:15:35 +0000 Subject: [PATCH] cambiata funz. di preload img perche' stranamente non andava --- web/commons.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/commons.js b/web/commons.js index 6281dea..ebbd6ac 100644 --- a/web/commons.js +++ b/web/commons.js @@ -135,10 +135,12 @@ function reset_images() function update_images() { + // if (g_imgct % 10 == 0) alert("g_imgct: "+g_imgct+" xx "+g_preload_img_arr[g_imgct]); $("imgct").innerHTML = "Immagini caricate "+g_preload_imgsz_arr[g_imgct]+"%."; - if (g_imgct < g_preload_img_arr.length) - setTimeout(preload_images, 100, g_preload_img_arr, g_imgct); - g_imgct++; + if (g_imgct+1 < g_preload_img_arr.length) { + g_imgct++; + setTimeout(preload_images, 100, g_preload_img_arr, g_imgct-1); + } // $("imgct").innerHTML += "U"; } -- 2.17.1