From: Matteo Nastasi (mop) Date: Sat, 16 Feb 2008 13:15:35 +0000 (+0000) Subject: cambiata funz. di preload img perche' stranamente non andava X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=98814201f756ad2291c7ac80ce807cfd7b792e88;p=brisk.git cambiata funz. di preload img perche' stranamente non andava --- 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"; }