<html>
<head>
<title>Uhrzeit</title>
<script>
function time()
{
var hours = -1; // Hier Deinen Wert eintragen
var str = [], t = null;
var now = new Date();
now.setHours(now.getHours() + hours);
str.push(now.getHours());
str.push((t = now.getMinutes()) < 10 ? '0'+t : t);
str.push((t = now.getSeconds()) < 10 ? '0'+t : t);
document.getElementById('time').innerHTML = str.join(':') + ' Uhr';
window.setInterval("time();", 1000);
}
</script>
</head>
<body onload="javascript:time();">
<div id="time" />
</body>
</html> |