content of clock if thats any help
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Running Clock</title>
<SCRIPT LANGUAGE="JavaScript">
var ms = 0;
var state = 0;
function setCharAt(str, index, chr) {
if (index > str.length - 1) return str;
return str.substr(0, index) + chr + str.substr(index + 1);
}
function pad(n) {
return (n < 10) ? ("0" + n) : n;
}
// Start Stop Clock
function startstop() {
state = 1;
then = new Date();
then.setTime(then.getTime() - ms);
}
// Reset Clock
function swreset() {
state = 0;
ms = 0;
document.stpw.time.value = "RESET";
}
function display() {
setTimeout("display();", 50);
// Check We Want The Clock To Display
if (state == 1) {
now = new Date();
ms = (((now.getTime() - then.getTime()) / 1000) / 1);
var tf = " ";
var t1 = Math.floor(ms / 60);
var t2 = t1 * 60;
// Check t1 more than a minute
if (t1 > 0) {
// Convert Tto String
var t1_string = t1.toString();
// Check t1 more or less than 10
if (t1 < 10) {
tf = setCharAt(tf, 1, t1_string);
tf = setCharAt(tf, 2, ".");
} else {
tf = setCharAt(tf, 0, t1_string.substring(0, 1));
tf = setCharAt(tf, 1, t1_string.substring(1, 2));
tf = setCharAt(tf, 2, ".");
}
}
// Seconds
var seconds = ms - t2;
if (t1 == 0 && seconds < 10) {
// One Decimal Place
seconds = seconds.toFixed(1);
// Convert to String
seconds = seconds.toString();
tf = setCharAt(tf, 4, seconds.substring(0, 1));
tf = setCharAt(tf, 5, seconds.substring(1, 2));
tf = setCharAt(tf, 6, seconds.substring(2, 3));
} else {
// One Decimal Place and Pad with zero at front
seconds = pad(seconds.toFixed(2));
// Convert to String
seconds = seconds.toString();
tf = setCharAt(tf, 3, seconds.substring(0, 1));
tf = setCharAt(tf, 4, seconds.substring(1, 2));
tf = setCharAt(tf, 5, seconds.substring(2, 3));
tf = setCharAt(tf, 6, seconds.substring(3, 4));
}
// Update Inner HTML of RunningCLock
document.getElementById("RunningClock").innerHTML = tf;
}
}
window.onload = display
// Auto Start
startstop();
</SCRIPT>
<style media="screen" type="text/css">
body {
background-color: rgb(180,180,180);
margin: 0px auto;
font-size: 10pt;
}
.RunningTime {
font-family: Verdana, sans-serif;
font-size: 140%;
text-align: right;
color: rgb(255,255,255);
cursor: default;
}
</style>
</head>
<body>
<div class="RunningTime" style="position: absolute; left: 0px; right: 0px; top: 50%; overflow: hidden; margin-top: -11px; height: 23px; max-height: 23px;">
<p style="margin: 0px;" id="RunningClock"></p>
</div>
</body>
</html>