Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/11/2007, 07:10
dorvax
 
Fecha de Ingreso: octubre-2007
Ubicación: VEVLN
Mensajes: 223
Antigüedad: 17 años, 4 meses
Puntos: 0
Re: Actualizar Hora

aqui te dejo un codigo mas sencillo, sin necesidad de actualizar tu web, solo necesitas agregar unas mejoreas y listo

Cita:
<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)
}
</script>
</head>

<body onload="mueveReloj()">

Vemos aquí el reloj funcionando...

<form name="form_reloj">
<input type="text" name="reloj" size="10">
</form>

</body>
</html>