English
<!-- http://www.downcodes.com/js --> <!--To achieve this effect, two steps are required. Step 1: Add the following code to the <head> area --> Check the status The effect of the bar! <SCRIPT LANGUAGE="JavaScript"> <!-- var flasher = false // calculate current time, determine flasher state, // and insert time into status bar every second 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 += ((flasher) ? " " : " =") theTime += (theHour >= 12) ? " PM" : " AM" flasher = !flasher window.status = theTime // recursively call this function every second to keep timer going timerID = setTimeout("updateTime()",1000) } //--> </SCRIPT> <!--Step 2: Put "onLoad="updateTime() "" is added to the <body> tag. For example: --> <body onLoad="updateTime()">