Hey - I am trying to make a simple Java timer, which I have done. But it is displaying the hrs/mins/secs as is - ie if it is less than 10 secs it is displaying say "7", While I want it to display "07".
Can anyone advise a simple 1 line format option ?
The .value is actually coming back undefined so it is always hitting the else condition.
Thx - GC
Can anyone advise a simple 1 line format option ?
The .value is actually coming back undefined so it is always hitting the else condition.
PHP Code:
code -deleted - see copy below ...



- @#%@#%@#%@#%, I don't know any Java so i wouldn't have spotted that, I grabbed the function for the countdown timer from a Java tutorial site, added the hours and minutes for the target event, and then wrapped it in a php script so I can call it recursively for multiple events.
Comment