Salve, vi presento a seguire il codice javascript per l'orario che funziona correttamente in Intenet Explorer ma non su Firefox, è possibile trovare qualche trucchetto??
L'errore che mi compare è il fatto che non mi completa chiaramente l'anno, esempio: Mercoledì 6 Luglio 105 invece di 2005.
Questo il codice:
<!--
var data = new Date();
var set, gg, mm, aaaa, h, m, s;
var mesi = new Array ();
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";
var giorni = new Array ();
giorni[0] = "Domenica";
giorni[1] = "Lunedì";
giorni[2] = "Martedì";
giorni[3] = "Mercoledì";
giorni[4] = "Giovedì";
giorni[5] = "Venerdì";
giorni[6] = "Sabato";
set = giorni[data.getDay()] + " ";
gg = data.getDate() + " ";
mm = mesi[data.getMonth()] + " ";
aaaa = data.getYear();
h = data.getHours() + ":";
m = data.getMinutes() + ":";
s = data.getSeconds();
document.write(" " + set + gg + mm + aaaa + " " );
-->
Fatemi sapere grazie..

Rispondi quotando
