I need your help to add to this script the full name of the day (like Monday, Tuesday... etc...). I found scripts containing this
nameDay = new Array('Domenica','Lunedi','Martedi','Mercoledi','Giovedi','Venerdi','Sabato');
(I'm italian)
But I want to use the following script because is server side and it's cross browser compatible. I just want to add to it the name of the days.
This is the script that I want to edit. Thank you
<script>
var data = new Date();
data.setTime(<? echo time()*1000; ?>);
function clock()
{
var hou = data.getHours();
var min = data.getMinutes();
var sec = data.getSeconds();
if(hou<10){ ora= "0"+ora;}
if(min<10){ min= "0"+min;}
if(sec<10){ sec= "0"+sec;}
document.getElementById('clock').innerHTML = data.getDate()+"/"+(data.getMonth()+1)+"/"+data.getFullYear()+" - "+hou+":"+min+":"+sec;
data.setTime(data.getTime()+1000)
setTimeout("clock();",1000);
}
</script><body onload="clock()">
<div id="clock"></div>