//Fonction date time_heu = 21; time_min = 47; time_sec = 26; function time_calc() { if(time_sec < 10) time_sec = '0' + Math.round(time_sec); else if(time_sec >= 60) { time_sec = '00'; time_min++; } if(time_min < 10) time_min = '0' + Math.round(time_min); else if(time_min >= 60) { time_min = '00'; time_heu++; } if(time_heu < 10) time_heu = '0' + Math.round(time_heu); else if(time_heu >= 24) time_heu = '00'; time_heu_texte = time_heu + ':' + time_min + ':' + time_sec; document.getElementById('time_heure').innerHTML = time_heu_texte; time_sec++; } setInterval('time_calc()', 1000);