ryan5262
1
alright all can some one help me with this script? just i can see whats wrong with it can you?
thanks again
PHP:
<form name= "Tick">
<input type="Text" sixe="11" name="Clock">
</form>
<script>
<!--
function show() {
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var dn = "AM";
if (hours > 12){
Dn="PM";
if (hours==0)
hours 12;
if(minutes<=9)
minutes = "0" + minutes;
if(seconds<=9)
seconds = "0" + seconds;
documents.Tick.Clock.value=hours + ":" +Minutes+ ":" +seconds+" dn;
setTimeout("Clock()", 1000);
}
show()
//-->
</script>