Questo script indica l'ora ma leggendo l'ora del vs computer lo aggiorna secondo per secondo, dandovi anche giorno mese anno.

Questo è lo script da inserire in html:

<SCRIPT LANGUAGE="JavaScript">

if (navigator.appName == "Microsoft Internet Explorer") {

ID = setTimeout("Aggiorn();",1000);

function Aggiorn() {

Mesi = new Array(11);

Mesi [0] = "Gennaio"

Mesi [1] = "Febbraio"

Mesi [2] = "Marzo"

Mesi [3] = "Aprile"

Mesi [4] = "Maggio"

Mesi [5] = "Giugno"

Mesi [6] = "Luglio"

Mesi [7] = "Agosto"

Mesi [8] = "Settembre"

Mesi [9] = "Ottobre"

Mesi [10] = "Novembre"

Mesi [11] = "Dicembre"

Data = new Date()

Giorno = Data.getDate()

Mese = Data.getMonth()

Anno = Data.getYear()

Datario = Data.toGMTString()

GiorSet = Datario.substring(0, 3)

if (GiorSet == "Sun") GiorSet = " "

if (GiorSet == "Mon") GiorSet = " "

if (GiorSet == "Tue") GiorSet = " "

if (GiorSet == "Wed") GiorSet = " "

if (GiorSet == "Thu") GiorSet = " "

if (GiorSet == "Fri") GiorSet = " "

if (GiorSet == "Sat") GiorSet = " "

Ore = Data.getHours()

Minuti = Data.getMinutes()

Secondi = Data.getSeconds()

Cal = + Ore + ":" + Minuti + "." + Secondi + " --- " + GiorSet + " " + Giorno + " " + Mesi[Mese] + " " + Anno

// document.FormData.Tes.value=Cal

ID = setTimeout("Aggiorn();",1000);

if (document.all)

document.all.clock.innerHTML=Cal

else

document.write(Orologio)

}

}

</script>

<span id="clock"></span>

<b>

</script>

 

ALTRI DATARI