Ciao a tutti, ho questo script funzionante, ora ho cambiato server e ho uno sfasamento rispetto all'orario italiano, che è 6 ore avanti...
Come posso aggiustare?
<script language="JavaScript">
<!--
var data=new Date(<?php print (time()*1000);?>)
hr=data.getHours();
if (hr >=00 && hr < 01)
{
document.write("ciao")
}
if (hr >=01 && hr < 16)
{
document.write("xxx")
}
if (hr >=16 && hr < 17)
{
document.write("ciao")
}
if (hr >=17 && hr < 21)
{
document.write("xxx")
}
if (hr >=21 && hr < 24)
{
document.write("ciao")
}
// -->
Grazie!