![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
05/10/2009, 16:11
|
| | Fecha de Ingreso: octubre-2009
Mensajes: 40
Antigüedad: 15 años, 4 meses Puntos: 1 | |
Respuesta: Como actualizo reloj php??? uno muy simnple.....
<html>
<head>
<title>Reloj con Javascript</title>
<script language="JavaScript">
function mueveReloj(){
momentoActual = new Date()
hora = momentoActual.getHours()
minuto = momentoActual.getMinutes()
segundo = momentoActual.getSeconds()
horaImprimible = hora + " : " + minuto + " : " + segundo
document.form_reloj.reloj.value = horaImprimible
setTimeout("mueveReloj()",1000,1)
}
</script>
</head>
<body onload="mueveReloj()">
Vemos aquí el reloj funcionando...
<form name="form_reloj">
<input type="text" name="reloj" size="20">
</form>
</body>
</html> |