imagemVar = ''; count = 0; count2 = 80; pontinho= '|'; function precarrega(){ imgVar = new Image(); imgVar.src = imagemVar; loadCheck(); } function loadCheck(){ if(pontinho.length == 20){ pontinho = '|'; } pontinho = pontinho + '|'; if(imgVar.complete || navigator.appName == "Netscape"){ terminacount(); if(imgVar.width >= screen.availWidth || imgVar.height >= screen.availHeight){ scrollVar="yes"; } else{ scrollVar="no"; } configura="width=500,height=500,resizable=no,top=50,scrollbars="+scrollVar+",left=150" pop=window.open('/?m=ShowImgWindow&act=HtmlImage','',configura); count=0; if(navigator.appName == "Netscape"){ setTimeout("pop.location.reload();", 3000); setTimeout("pop.location.reload();", 200);}} else{ if(count < 80){ count = count + 1; setTimeout('loadCheck()',200); window.status = 'Carregando Imagem!!! ==> '+count+'% '+pontinho; } else{ setTimeout('loadCheck()',200); window.status = 'Carregando Imagem!!! ==> '+count2+'% '+pontinho; } } } function terminacount(){ if(count2 < 100){ count2 = count2 + 5; window.status = 'Imagem Carreganda !!! ==> '+count2+'%'; setTimeout('terminacount()',10); } else { window.status = 'Imagem Carregada !!! ==> 100%'; } }