Ola, a todos !
Gostaria de pedir uma ajuda de voces, como não manjo nada de java venho pedir a ajuda de voces para uma pequena proeza !
Tenho esse codigo java de uma barra de progresso que mostra somente a movimentacao horizontal de uma luz verde passando, dizendo que o arquivo esta sendo upado!
Gostaria que ela tambem mostrasse a % e a velocidade na hora que o arquivo estiver sendo upado !
alguém pode me ajudar ?
Esse e o meu site onte to querendo mudar a barra de progresso que fiz, mas n sei como adicinar medidor de % e de velocidade !
Obrigado
[code]var w3c=(document.getElementById)?true:false;
var ie=(document.all)?true:false;
var N=-1;
function createBar(w,h,bgc,brdW,brdC,blkC,speed,blocks,count,action){
if(ie||w3c){
var t=’
t+=’’;
for(i=0;i<blocks;i++){
t+=’’;
}
t+=’
document.write(t);
var bA=(ie)?document.all[‘blocks’+N]:document.getElementById(‘blocks’+N);
bA.bar=(ie)?document.all[’_xpbar’+N]:document.getElementById(’_xpbar’+N);
bA.blocks=blocks;
bA.N=N;
bA.w=w;
bA.h=h;
bA.speed=speed;
bA.ctr=0;
bA.count=count;
bA.action=action;
bA.togglePause=togglePause;
bA.showBar=function(){
this.bar.style.visibility=“visible”;
}
bA.hideBar=function(){
this.bar.style.visibility=“hidden”;
}
bA.tid=setInterval(‘startBar(’+N+’)’,speed);
return bA;
}}
function startBar(bn){
var t=(ie)?document.all[‘blocks’+bn]:document.getElementById(‘blocks’+bn);
if(parseInt(t.style.left)+t.h+1-(t.blockst.h+t.blocks)>t.w){
t.style.left=-(t.h2+1)+‘px’;
t.ctr++;
if(t.ctr>=t.count){
eval(t.action);
t.ctr=0;
}}else t.style.left=(parseInt(t.style.left)+t.h+1)+‘px’;
}
function togglePause(){
if(this.tid==0){
this.tid=setInterval(‘startBar(’+this.N+’)’,this.speed);
}else{
clearInterval(this.tid);
this.tid=0;
}}
function togglePause(){
if(this.tid==0){
this.tid=setInterval(‘startBar(’+this.N+’)’,this.speed);
}else{
clearInterval(this.tid);
this.tid=0;
}}[/code]