|
-
Getting better day by day.....
clock problem
i have placed the following code in frame 1 which then displays the current time in relevant dynamic text box.
Any ideas what i have missed because the time doesn't update itself-it just stays at the time you entered the page at
now=new Date()
//txt1.text=now.getHours()+":"+now.getMinutes()+":"+ now.getSeconds()
h=now.getHours()
if (h<10){
h="0"+h
}
m=now.getMinutes()
if (m<10){
m="0"+m;
}
s=now.getSeconds()
if (s<10){
s="0"+s
}
ms=now.getMilliseconds()
if (ms<10){
ms="0"+ms
}
txt1.text=h+":"+m
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|