1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| SCRIPT language="javascript" TYPE="text/javascript">
<!--
function date() {
hit = new Date(); // instantiation of the date() constructor
year= hit.getYear(); // year (2 or 4 digits)
year<2000 ? year=1900+year : null; // 1970-1999
month=hit.getMonth(); // month (counted from 0)
day=hit.getDay(); // day= day in week (0=Dimanche)
daym=hit.getDate(); // day in the month
daym<10 ? daym="0"+daym : null; // daym=01 if day<10
dayarray=new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
montharray=new Array("janvier","février","mars","avril", "mai","juin","juillet","août","septembre","octobre","novembre","décembre");
barat = "<div style='font-family:verdana,arial;font-size:smaller'>Mise à jour le " + dayarray[day]+" "+daym+" "+montharray[month]+" "+year + "</div>";
document.write(barat);
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT>date();</SCRIPT>
</BODY> |
Partager