Salve,
vorrei che venissero aggiunti i secondi a questo script che genera "Ora e Data", vorrei inoltre che l'orario si aggiornasse da solo, se notate infatti senza il refresh della pagina i minuti non scorrono.
Grazie.
codice:
<font face="Verdana" size="2" color="#000000"><script language="JavaScript">
<!--
var months=new Array(13);
months[1] = "Gennaio";
months[2] = "Febbraio";
months[3] = "Marzo";
months[4] = "Aprile";
months[5] = "Maggio";
months[6] = "Giugno";
months[7] = "Luglio";
months[8] = "Agosto";
months[9] = "Settembre";
months[10] = "Ottobre";
months[11] = "Novembre";
months[12] = "Dicembre";
var dateObj=new Date()
var lmonth=months[dateObj.getMonth() + 1]
var date=dateObj.getDate()
var ora=new Date();
var ore = ora.getHours();
var minuti = ora.getMinutes();
if
(minuti<10) minuti="0" + ora.getMinutes();
else
minuti=ora.getMinutes();
document.write(ore + "<BLINK>:</BLINK>" + minuti + " - ")
document.write(" " + date + " " + lmonth + "" + "2006" + "</FONT>")
// -->
</script>
</font>