<HTML>
<HEAD>
<TITLE>Horloge dans la barre d'état</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
var flasher = false
// calcule l'heure, détermine l'état de la variable flasher,
// et insère l'heure dans la barre d'état chaque seconde
function updateTime() {
	var now = new Date()
	var theHour = now.getHours()
	var theMin = now.getMinutes()
	var theTime = "" + ((theHour > 12) ? theHour - 12 : theHour)
	theTime += ((theMin < 10) ? ":0" : ":") + theMin
	theTime += (theHour >= 12) ? " pm" : " am"
	theTime += ((flasher) ? " " : "*")
	flasher = !flasher
	window.status = theTime
	// appel récursif de la fonction chaque seconde
	timerID = setTimeout("updateTime()",1000)
}
//-->
</SCRIPT>
</HEAD>

<BODY onLoad="updateTime()">
</BODY>
</HTML>