Es fácil y super sencillo para cualquier programador de todas maneras cualquier duda escriben un comentario y se las aclaro, también si hay algún fallo mejora o sugerencia también compártelo.
<html>
<head>
<script language="JavaScript">
function actualizaReloj(){
marcacion = new Date()
Hora = marcacion.getHours()
Minutos = marcacion.getMinutes()
Segundos = marcacion.getSeconds()
if (Hora<=9)
Hora = "0" + Hora
if (Minutos<=9)
Minutos = "0" + Minutos
if (Segundos<=9)
Segundos = "0" + Segundos
var Dia = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo");
var Mes = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var Hoy = new Date();
var Anio = Hoy.getFullYear();
var Fecha = "Hoy es " + Dia[Hoy.getDay()] + ", " + Hoy.getDate() + " de " + Mes[Hoy.getMonth()] + " de " + Anio + ", a las ";
var Inicio, Script, Final, Total
Inicio = "<font size=3 color=red>"
Script = Fecha + Hora + ":" + Minutos + ":" + Segundos
Final = "</font>"
Total = Inicio + Script + Final
document.getElementById('Fecha_Reloj').innerHTML = Total
setTimeout("actualizaReloj()",1000)
}
</script>
<body onload="actualizaReloj()">
Aquí mostramos la Fecha y la hora:
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td id="Fecha_Reloj"></td>
</tr>
</table>
</body>
</html>
Excelente contribución ...!
ResponderEliminarCasino & Resort in Ridgefield | JTG Hub
ResponderEliminarJTG Casino & 성남 출장샵 Resort 성남 출장안마 · Hollywood Casino at Penn 익산 출장안마 National Race 태백 출장안마 Course in 김제 출장샵 Ridgefield offers casino dining options, slots, video poker, simulcast live gaming,