Version compl�te: jsB@nk » État » État » Date-heure dans la barre de statut
URL: https://www.javascriptbank.com/date-time-in-status-bar.html
Le script affiche la date et heure dans le état barre du navigateur. Il contient une nifty interrupteur qui peut être modifié de façon à régler l'affichage de la date soit, heure ou les deux! IE seulement.
Version compl�te: jsB@nk » État » État » Date-heure dans la barre de statut
URL: https://www.javascriptbank.com/date-time-in-status-bar.html
<SCRIPT LANGUAGE="JavaScript"> var timerID = null var timerRunning = false function MakeArray(size) { this.length = size; for(var i = 1; i <= size; i++) { this[i] = ""; } return this; } function stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false } function showtime () { var now = new Date(); var year = now.getYear(); var month = now.getMonth() + 1; var date = now.getDate(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); var day = now.getDay(); Day = new MakeArray(7); Day[0]="Sunday"; Day[1]="Monday"; Day[2]="Tuesday"; Day[3]="Wednesday"; Day[4]="Thursday"; Day[5]="Friday"; Day[6]="Saturday"; var timeValue = ""; timeValue += (Day[day]) + " "; timeValue += ((month < 10) ? " 0" : " ") + month + "-"; timeValue += date + "-" + year + " "; timeValue += ((hours <= 12) ? hours : hours - 12); timeValue += ((minutes < 10) ? ":0" : ":") + minutes; timeValue += ((seconds < 10) ? ":0" : ":") + seconds; timeValue += (hours < 12) ? " AM" : " PM"; window.status = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true } function startclock () { stopclock(); showtime() } // End Hiding --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<BODY onLoad="startclock();"><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->