HEy, here is a French version of this. You can actually change this to any language. Just took your code and rewrote it for one of my classes. Thought I should share.
Code:
function DisplayTime(){
var CurrentDate=new Date(); //get date and distribute
var hours=CurrentDate.getHours();
var minutes=CurrentDate.getMinutes();
var seconds=CurrentDate.getSeconds();
if (minutes<=9) minutes="0"+minutes; // make sure that there is consistency in display
if (seconds<=9) seconds="0"+seconds;
if (hours<=9) hours="0"+hours;
var day=CurrentDate.getDay();
var monthday=CurrentDate.getDate();
var month=CurrentDate.getMonth();
var jours=new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"); //Frech addon for days
var mois=new Array("Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novbembre","Decembre"); //French addon for months
var annee=CurrentDate.getFullYear();
var currentTime=jours[day]+" le "+monthday+" "+mois[month]+" "+annee+" "+hours+":"+minutes+":"+seconds;
document.getElementById("curTime").innerHTML=currentTime;
setTimeout("DisplayTime()",1000);
}
window.onload=DisplayTime;
/*end*/
OK, hope this helps.
Bookmarks