نمایش ساعت در پائین صفحهStatus Bar
<!--Powered java code by WwW.IranGamer.Com--> <br><html> <br> <br><head> <br><title>Digital Clock - Status Bar</title> <br>< Language="Java"> <br>var timerID = null; <br>var timerRunning = false; <br> <br>function stopclock (){ <br> if(timerRunning) <br> clearTimeout(timerID); <br> timerRunning = false; <br>} <br> <br> <br>function showtime () { <br> var now = new Date(); <br> var hours = now.getHours(); <br> var minutes = now.getMinutes(); <br> var seconds = now.getSeconds() <br> var timeValue = "" + ((hours >12) ? hours -12 :hours) <br> timeValue += ((minutes < 10) ? ":0" : ":") + minutes <br> timeValue += ((seconds < 10) ? ":0" : ":") + seconds <br> timeValue += (hours >= 12) ? " P.M." : " A.M." <br> window.status = timeValue; <br> timerID = setTimeout("showtime()",1000); <br> timerRunning = true; <br>} <br>function startclock () { <br> stopclock(); <br> showtime(); <br>} <br></> <br></head> <br> <br><body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" <br>onLoad="startclock()"> <br></body> <br></html> <br> <br>