Hola
mickeyy
Prueba este código:
Código PHP:
<html>
<head>
<script type="text/javascript">
var tem=0;
function contar() {
tem++;
var ti=new Date();
ti.setTime(tem*1000);
seg = ti.getSeconds();
if (seg<10) seg='0'+seg;
minu = ti.getMinutes();
if (minu<10) minu='0'+minu;
hor = ti.getHours()-1;
document.getElementById('tiempo').innerHTML = hor+':'+minu+':'+seg;
}
</script>
</head>
<body onload="setInterval('contar()',1000)">
<div id="tiempo"></div>
</body>
</html>
Saludos,