I nomi delle citta' aggiungili tu...
codice:
<SCRIPT type="text/javascript">
function showFilled(Value) {
return (Value > 9) ? "" + Value : "0" + Value;
}
var quanti=5 // variabile globale col numero di orologi
var fusi=[0,-1,-6,9,4] // array con i fusi orari nell' ordine degli orologi
function StartClock24() {
for(var k=0;k<quanti;k++){
TheTime = new Date;
// scrivo nel campo corretto l' ora attuale + quel fuso orario
TheTime.setHours(TheTime.getHours()+fusi[k])
document.clock.elements['showTime'+k].value=showFilled(TheTime.getHours()) + ":" +
showFilled(TheTime.getMinutes()) + ":" +
showFilled(TheTime.getSeconds());
}
setTimeout("StartClock24()",1000)
}
//-->
</script>
<style type="text/css">
<!--
.input { border-style: none;
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:8pt;
color : red;
}
-->
</style>
<BODY onload="StartClock24()">
<form name=clock>
<input type=text name="showTime0" size=8 class=input>
<input type=text name="showTime1" size=8 class=input>
<input type=text name="showTime2" size=8 class=input>
<input type=text name="showTime3" size=8 class=input>
<input type=text name="showTime4" size=8 class=input>
</form>
ciao