Personal how do I change the function below? I want to display the time in a div.
<HTML>
<HEAD>
<TITLE>cronometro</TITLE>
<script language="JavaScript">
<!--
function showtime()
{ setTimeout("showtime();",1000);
callerdate.setTime(callerdate.getTime()+1000);
var hh = String(callerdate.getHours());
var mm = String(callerdate.getMinutes());
var ss = String(callerdate.getSeconds());
document.clock.face.value =
((hh < 10) ? " " : "") + hh +
((mm < 10) ? ":0" : ":") + mm +
((ss < 10) ? ":0" : ":") + ss;
}
callerdate = new Date(<?php
date_default_timezone_set('America/sao_paulo');
$brasil = date('Y,m,d,H,i,s', time());
echo $brasil;
?>);
//-->
</script>
</HEAD>
<meta name="" content="">
<body onLoad="showtime()">
<form name="clock"><input name="face" value=""></input>
</form>
</body>
</HTML>