Hola tengo el siguiente script de un calendario y un reloj que es muy básico pero si le pongo el setInterval la página carga todo pero no se 'actualizan' los segundos:
Código Javascript
:
Ver original<script>
function reloj(){
var f = new Date();
var a = f.getFullYear();
var m = new Array ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var d = new Array ("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");;
var h = f.getHours();
var mi = f.getMinutes();
var s = f.getSeconds();
document.write ('Hoy es ' + d[f.getDay()] + ', ' + f.getDate() + ' de ' + m[f.getMonth()] + ' de ' + a + ' y son las ' + h + ':' + mi + ':' + s );
}
setInterval("reloj()", 500);
</script>
Muchas gracias (: