»
AnglaisFran�aisVietnamien

Imprimer - Dynamic Clock script - JavaScriptBank.com

Version compl�te: jsB@nk » Heure » Horloge » Dynamic Clock script
URL: https://www.javascriptbank.com/dynamic-clock-script.html

Dynamic Clock script © JavaScriptBank.com(Version 4.0 + browsers) utilisant des calques, JavaScript peut afficher en temps réel horloge votre page. C'est une façon professionnelle pour ajouter une touche de votre page web. Et, comme le montre horloge sur la page des mises à jour toutes les secondes. Tout faire sans l'aide de formulaires, cool!

Version compl�te: jsB@nk » Heure » Horloge » Dynamic Clock script
URL: https://www.javascriptbank.com/dynamic-clock-script.html



JavaScript
<SCRIPT LANGUAGE="JavaScript">// Craig Lumley | http://www.ws4all.co.uk<!-- Beginfunction MakeArrayday(size) {this.length = size;for(var i = 1; i <= size; i++) {this[i] = "";}return this;}function MakeArraymonth(size) {this.length = size;for(var i = 1; i <= size; i++) {this[i] = "";}return this;}function funClock() {if (!document.layers && !document.all)return;var runTime = new Date();var hours = runTime.getHours();var minutes = runTime.getMinutes();var seconds = runTime.getSeconds();var dn = "AM";if (hours >= 12) {dn = "PM";hours = hours - 12;}if (hours == 0) {hours = 12;}if (minutes <= 9) {minutes = "0" + minutes;}if (seconds <= 9) {seconds = "0" + seconds;}movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";if (document.layers) {document.layers.clock.document.write(movingtime);document.layers.clock.document.close();}else if (document.all) {clock.innerHTML = movingtime;}setTimeout("funClock()", 1000)}window.onload = funClock;//  End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
Currently, it&#39;s <span id=clock style="position:relative;"></span><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->