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
Hello -- If you are comfortable with copying-and-pasting some javascript into your source code, you can do what I did. It shows up as: The "285" figure is embedded as a javascript variable in the source code, and is the countdown figure -- it changes automatically each day. 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: <script>document.write(daysLeft);</script> 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.
|
||
|
New Topic |
Subscription Options: Have all new forum posts sent directly to your email. |
Subscription options are available after you log in. |