Bonjour,

Je laisse ce message car j'ai un soucis avec mon horloge. En effet l'heure n'apparait plus pouvez vous m'aider à trouver la raison du problème merci d'avance ?
Voici le code que j'utilise :

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<title>Horloge</title> 
<SCRIPT LANGUAGE="JavaScript"> 
navvers = navigator.appVersion.substring(0,1); 
if (navvers > 3) 
 navok = true; 
else 
 navok = false; 
 
today = new Date; 
numero = today.getDate(); 
if (numero<10) 
 numero = "0"+numero; 
mois = today.getMonth(); 
if (navok) 
 annee = today.getFullYear(); 
else 
 annee = today.getYear(); 
mois++; 
if (mois < 10) 
 mois = "0" + mois; 
messageDate = numero + "/" + mois + "/" + annee; 
function HeureCheck() 
{ 
krucial = new Date; 
heure = krucial.getHours(); 
min = krucial.getMinutes(); 
sec = krucial.getSeconds(); 
jour = krucial.getDate(); 
mois = krucial.getMonth()+1; 
annee = krucial.getFullYear(); 
if (sec < 10) 
sec0 = "0"; 
else 
sec0 = ""; 
if (min < 10) 
min0 = "0"; 
else 
min0 = ""; 
if (heure < 10) 
heure0 = "0"; 
else 
heure0 = ""; 
DinaHeure = heure0 + heure + ":" + min0 + min + ":" + sec0 + sec; 
which = DinaHeure 
if (document.all){ 
dynamic3.innerHTML='<center>00:00:00</center>' 
dynamic3.innerHTML='<FONT SIZE=2 FACE=" comic sans ms black "><B>'+which+'</B></FONT>'; 
} 
else if (document.layers){ 
document.dynamic1.document.dynamic2.document.write(''+which+'') 
document.dynamic1.document.dynamic2.document.close() 
} 
tempo = setTimeout("HeureCheck()", 1000) 
} 
</SCRIPT> 
</head> 
<body onLoad="HeureCheck()" onUnload="clearTimeout(tempo)"> 
 
 
<table border="0" cellspacing="0" cellpadding="0" width="50" height="50"> 
  <tr> 
<td bgcolor="#000000" style="border: 1 solid #000000 " > 
<table summary="" border="0" width="100%" height="100%"> 
<tr> 
<!--  couleur fond et texte --> 
<td  background="#000000"><CENTER> 
<font color="#FFFFFF"> 
<!--  fin couleur fond et texte --> 
<FONT SIZE=2 FACE="comic sans ms black"><B><SCRIPT LANGUAGE="JavaScript"> document.write(messageDate); </SCRIPT> 
              </B></FONT>  
              <!-- image ici  --> 
              <a target="_blank" title="Cartoons spirit" href="http://www.cartoons-spirit.fr/">  
              <img border="0" src="http://cartoons.spirit.free.fr/Monsite/Horloge/HORLOGE1.jpg" width="135" height="170"></a> 
              <!-- fin image ici --> 
              </a>  
              <ilayer id="dynamic1" width=100% height=15><layer id="dynamic2" width=100% height=15><div id="dynamic3"></div></layer></ilayer> 
        </font></CENTER> 
  </td> 
 </tr> 
</table> 
 </tr> 
</table> 
</body> 
</html>