imladris
08-24-2005, 08:45 AM
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
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