|New Topic Subscription Options|
Countdown Clock / Imbedding the Number of days remaining
|Forums: General Discussion|
|Participant: Log in to see names||
Monday, December 28, 2009 at 2:31 PM
It shows up as:
To do this, you need to know how to edit the source code.
today = new Date();
target = new Date("09 October, 2010");
daysLeft = Math.floor(1 + ((targetEpoch - todayEpoch) / (60*60*24)) / 1000);
Then, go back to the source code, and enter the following:
in-between the "Just" and the "days"
Just <script>document.write(daysLeft);</script> days to go
Save it, and that's it. You may have to add a space in front of the word "days" to get it to look right.
|Subscription Options: Have all new forum posts sent directly to your email.|
|Subscription options are available after you log in.|