X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=d2863728c3fd3d0e0f499765da08f7d89d0a6f2b;hb=7c225f8f69e49965d43a4af26f5564e4d95ec4cc;hp=6281dea30ef6456485514d0ff9f26459ee0c145e;hpb=68fb2c2e1ee1360daf3ac1e7e2edf5a03bb57845;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 6281dea..d286372 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"; } @@ -177,7 +179,7 @@ function send_mesg(mesg) var xhr_wr = createXMLHttpRequest(); - xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+encodeURIComponent(mesg), true); + xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+mesg, true); xhr_wr.onreadystatechange = function() { return; }; xhr_wr.send(null); @@ -902,9 +904,9 @@ function playsound(tag, sound) { if (g_withflash) { $(tag).innerHTML = '' + -'' + +'' + '' + -''; } }