Ufff, nemoj istu temu da otvaraš u više foruma... može lako da bude obrisana.
Naravno da nemam gotovo, ali napisaću sad...
Na stranici, gde želiš da postaviš sat, ubaci sledeći kod...
Code:
<span id="sat">.</span>
... a ovaj skript takođe postavi negde...
Code:
<script>
satMachine = function ()
{ format2digits = function (numb)
{ if (numb > 9) return numb
; return "0" + numb
}
var node = document.getElementById ("sat").firstChild
; var now = new Date ()
; node.nodeValue = now.getHours ()
; node.nodeValue += ":"
; node.nodeValue += format2digits (now.getMinutes ())
; node.nodeValue += ":"
; node.nodeValue += format2digits (now.getSeconds ())
}
setInterval (satMachine, 1000)
</script>