Code
Code
<style>
#time{font-size:150px;text-align:center;margin-top:300px;}
</style>
<div id="time"></div>
<script type="text/javascript">
setInterval(function () {
date = new Date(),
h = date.getHours(),
m = date.getMinutes(),
s = date.getSeconds(),
mic = date.getMilliseconds(),
mic = (mic < 10) ? '00' + mic : (mic < 100 ? '0' + mic : mic),
h = (h < 10) ? '0' + h : h,
m = (m < 10) ? '0' + m : m,
s = (s < 10) ? '0' + s : s,
document.getElementById('time').innerHTML = h + ':' + m + ':' + s +':' + mic;
}, 1);
</script>