1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| <!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=windows-1252" http-equiv="content-type">
<title></title>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!--
/*Script téléchargé sur EasyScript (www.easy-script.com)*/
var today;
today = new Date();
var d=new Date();
var month=new Array();
month[0]="January";
month[1]="February";
month[2]="March";
month[3]="April";
month[4]="May";
month[5]="June";
month[6]="July";
month[7]="August";
month[8]="September";
month[9]="October";
month[10]="November";
month[11]="December";
var n = month[d.getMonth()];
document.write("Nous sommes le ", today.getDate()," ",n," ",today.getYear())
//-->
</SCRIPT>
<script>function calcul_horloge()
{
var horloge = new Date();
var heure = horloge.getHours();
var minutes = horloge.getMinutes();
var secondes= horloge.getSeconds();
if (heure<10) heure="0"+heure;
if (minutes<10) minutes="0"+minutes;
if (secondes<10) secondes="0"+secondes;
heure_jour = heure + ":" + minutes + ":" + secondes;
document.getElementById("horloge_jour").innerHTML=heure_jour;
setTimeout("calcul_horloge()",1000) ;
} </script>
<style>
#horloge_du_jour
{
width:177px;
height:30px;
position:absolute;
left:784px;
top:140px;
background-color: green;
} </style>
<script>
windows.onload=calcul_horloge;
</script>
<div id="horloge_jour" class="horloge_du_jour">
<script>calcul_horloge();</script> </div>
</body>
</html> |