»
AnglaisFran�aisVietnamien

Imprimer - Compte à rebours 2 - JavaScriptBank.com

Version compl�te: jsB@nk » Heure » Compteur » Compte à rebours 2
URL: https://www.javascriptbank.com/countdown-timer-2.html

Compte à rebours 2 © JavaScriptBank.comCe script affiche rebours directement à la page, en affichant le heure à gauche, en minutes et secondes. Le heure la durée peut être fixée dans le script. La minuterie s'arrête automatiquement lorsque le temps arrive à 00 minutes et 00 secondes.

Version compl�te: jsB@nk » Heure » Compteur » Compte à rebours 2
URL: https://www.javascriptbank.com/countdown-timer-2.html



CSS
<style>.timeClass {  font-family:arial,verdana,helvetica,sans-serif;  font-weight:normal;  font-size:10pt;}</style><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<script>/*Created by: Sandeep Gangadharan Web Site: http://www.sivamdesign.com/*/var sec = 30;   // set the secondsvar min = 02;   // set the minutesfunction countDown() {  sec--;  if (sec == -01) {    sec = 59;    min = min - 1;  } else {   min = min;  }if (sec<=9) { sec = "0" + sec; }  time = (min<=9 ? "0" + min : min) + " min and " + sec + " sec ";if (document.getElementById) { theTime.innerHTML = time; }  SD=window.setTimeout("countDown();", 1000);if (min == '00' && sec == '00') { sec = "00"; window.clearTimeout(SD); }}function addLoadEvent(func) {  var oldonload = window.onload;  if (typeof window.onload != 'function') {    window.onload = func;  } else {    window.onload = function() {      if (oldonload) {        oldonload();      }      func();    }  }}addLoadEvent(function() {  countDown();});</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<span id="theTime" class="timeClass"></span><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->