Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/12/2005, 06:41
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola PURACO

Creo que esto te servirá:
Código PHP:
<html>
<
head>
</
head>
<
script type="text/javascript">
function 
contar() {
  
fecha=new Date(2005,12,24,0,0,0); //año,mes,dia,hora,minuto,segundo
  
ahora=new Date();
  
dif=new Date(fecha-ahora);
  
txt='Quedan '+dif.getDate()+' días, '+dif.getHours()+' horas, ';
  
txt+=dif.getMinutes()+' minutos y '+dif.getSeconds()+' segundos para Navidad';
  
document.getElementById('pepe').innerHTML=txt;
}
</script> 
<body onload="setInterval('contar()',1000)">
<span id="pepe"></span>
</body>
</html> 
Saludos,