<!DOCTYPE html>
<html>
<head>
<script>
function startTime() {
//Set the start time, Date(Year, Month, Day, Hour, Minute)
var start = new Date(2013, 6, 4, 14, 0); //June 4, 2013 2:00PM
var now = new Date();
var h = now.getHours() - start.getHours();
var m = now.getMinutes() - start.getMinutes();
var s = now.getSeconds() - start.getSeconds();
document.getElementById('txt').innerHTML = "This site has been down for " + h + " Hours, "
+ m + " Minutes, and " + s + " Seconds";
t = setTimeout(function () { startTime() }, 500);
}
</script>
</head>
<body onload="startTime()">
<div id="txt"></div>
</body>
</html>