Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/05/2005, 19:46
kiyosaki
 
Fecha de Ingreso: enero-2005
Ubicación: PutisLandia
Mensajes: 323
Antigüedad: 19 años, 3 meses
Puntos: 0
reloj digital en javascript ke funcione en mozilla..

Buenas señores!!!

Necesito por favor eso... un relooj digital, si se puede que vaya cambiando los segundos, pero ke me funcione en mozilla e IExplore...

Tengo varios pero solo funcionan en IExplore... creo ke ya todo debe funcionar en mozilla tambien...

Alguien me puede ayudar por favor ke me diga o tenga uno???

gracias!!!

aqui les dejo el ke estaba usando que solo funciona en IEXplore..por si alguno le interesa!!
[i]
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function MakeArrayday(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function MakeArraymonth(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this = "";
}
return this;
}
function funClock() {
if (!document.layers && !document.all)
return;
var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "AM";
if (hours >= 12) {
dn = "PM";
hours = hours - 12;
}
if (hours == 0) {
hours = 12;
}
if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}
movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("funClock()", 1000)
}
window.onload = funClock;
// End -->
</script>