flash countdown
- Started
- Last post
- 10 Responses
- armed_rob
Hi
I got this countdown script:
http://pastebin.coconut.se/?id=4…
The thing is I want to ad 20 hours on the countdown. So that it counts to 20 sep. 2006 20:00.Anyone got 5 min for me?
- Engage0
...we're leaving together..gether...gether...
- armed_rob0
You drunk?
- Engage0
s
laughter
ed!
is the best medicine...
what you need to do is take away 20 hours worth of milli seconds... from _current.getTime()
so put that in a variable and keep taking it off... either that... or rewrite the function to allows for more than just days... bit of a daft function really that it counts down to the second... but you can only declare days
- Engage0
or instead of saying day 20... you could put day 20 and 20/24ths... might just work... if you want something quick (yourself) and dirty (your missus)
- armed_rob0
quick is the best way I think im getting a but rusty in as
- Engage0
you probably just need to be careful with decimal points on the dirty way... as .833333333333 of a day might put you a second out... would need a calculator to tell you how much though
- armed_rob0
I will try that thaks!
- UndoUndo0
if yr just looking for a function that counts down to a certain date you can make that much simpler
- armed_rob0
how? :D
- UndoUndo0
http://pastebin.coconut.se/?id=4…
there you go