Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/10/2008, 19:27
Avatar de Lophophora
Lophophora
 
Fecha de Ingreso: mayo-2005
Mensajes: 366
Antigüedad: 18 años, 11 meses
Puntos: 0
Reloj en Flash

Hola a todos, tengo un reloj en flash, pero no es muy exacto,

Alguien puede ayudarme a mejorarlo por favor haber si puede ser mas exacto.

Gracias

Código PHP:
seg++;
if (
seg==60){
    
seg=0;
    
minu++;
}

if(
hour==24){
        
hour=0;
    
    }
    if(
hour<10){
        
_root.secudig.hora.text="0"+hour;
    }
    else{
        
_root.secudig.hora.text=hour;
    }
if(
minu==60){
        
minu=0;
        
hour++;
    }
    if(
minu<10){
        
_root.secudig.minut.text="0"+minu;
    }
    else{
        
_root.secudig.minut.text=minu;
    }
if(
seg<10){
    
_root.secudig.caca.text="0"+seg;
}
else{
    
_root.secudig.caca.text=seg;
}

stop();
segundos =1;
espera = function () { 
gotoAndPlay(2);
clearInterval(a);
}
setInterval(esperasegundos*1000); 
Lophophora
__________________
P.L.U.R.