I followed the following tutorial:
http://www.kirupa.com/developer/mx/countdown.htm
I edited the date so that it counts down roughtly 12 days… the issue my client has is that they don’t want the added “0” at the beggining of the days count…
for example for 012 they want just 12 (days)
The code uses a while loop to add zeros to the beggining of the days value until it is nolonger less that three with the following code:
while (this.msecs.length < 3) this.msecs = "0" + this.msecs;
if (this.secs.length < 2) this.secs = "0" + this.secs;
if (this.mins.length < 2) this.mins = "0" + this.mins;
if (this.hours.length < 2) this.hours = "0" + this.hours;
while (this.days.length < 3) this.days = "0" + this.days;
Also… they use if statements for the other values that only need 2 place values… I tried to change the while statement to an if statment and it makes the days value act all wild.
Any idea how to get that beginning “0” off this timer? Thanks for any help… Not sure what to do form this point…