PDA

View Full Version : Dynamic Countup Script - thousand seperator, only 2 decimal points & absolute time?



sweisz
05-07-2007, 12:11 AM
Dynamic Drive has taught me everything I know about javascript (which is quite a bit these days). you guys rock!!!

1) Script Title:
Dynamic Countup Script

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex6/countingup.htm

3) Describe problem:
a) any chance of getting script to run on server time for absolute events?
b) I am using the baseunit 'seconds' and then on displaying it doing it like this: results[seconds]*.015, which works great to give me the number i am looking for (ex: 2664311.909037) but now i need comma seperators on thousands and want to limit to 2 decimal places. I have tried several techniques to no avail. any thoughts?