
More JavaScript Clocks
Analogue Clock | Alarm Clock | Basic Clock | Binary Clock | Button Time | Military 12 Hour | Corner Clock | Stop Watch | Current Date 1 | Current Date 2 | Current Date 3 | Current Date 4 | Holidays Notification | Current Time | Current Week | Week of the year | Date Time | Long Date Time | How Many Days | Digital Clock | Future Date | ISO Clock Standard | Live Clock | On Off Clock | Proper Date | Scroll Clock | A Silly Clock | Christmas Count Down | Time In Words | Title Bar Clock | Digital Wall Clock | Week Dates | World Times | World Clocks
Description
Use JavaScript to put the current time on your page. It even follows the time in A.M. and P.M.!...View A Script Demo
Use JavaScript to put the current time on your page. It even follows the time in A.M. and P.M.!...View A Script Demo
Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}
// End -->
</SCRIPT>
</HEAD>
<BODY Background=../graphics/grayback.jpg onLoad="startclock()">
<center><BR><BR><BR>
<FORM name="clock">
<input type="text" name="face" size=13 value="">
</FORM>
</CENTER>
</BODY>
</HTML>
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M." : " A.M."
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}
// End -->
</SCRIPT>
</HEAD>
<BODY Background=../graphics/grayback.jpg onLoad="startclock()">
<center><BR><BR><BR>
<FORM name="clock">
<input type="text" name="face" size=13 value="">
</FORM>
</CENTER>
</BODY>
</HTML>
If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail

