Time in Status Bar

[Total: 0    Average: 0/5]

This puts the current time in the status window.

Body Code:

<script>
function clock()
{
var id=null;
// clearTimeout(id)
Now=new Date()
var hours=Now.getHours()
var minutes=Now.getMinutes()
var seconds=Now.getSeconds()
    var timeValue = "                                     " + ((hours > 12) ? hours - 12 : hours)
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds
    timeValue  += (hours >= 12) ? " P.M." : " A.M."

window.status=timeValue
id=setTimeout("clock()",1000)
}
clock();

</script>

&nbsp;Watch at window status 

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *