
NOTES & Features
A Countdown panel that lets you change important variables so you can countdown
for any event.
Installation:
Open countdown.js in your file editor
At line 20 look for: <script language="JavaScript" src="http://www.fangree.co.uk/countdown.js"></script>
change http://www.fangree.co.uk/countdown.js to your location where you will uploaded the countdown.js file to. eg. http://www.yoursite.com/countdown.js
Upload countdown.js to your route.
Upload folder Countdown_panel to your sites infusions
folder
Go to admin >>> System Admin >>>Panels and
select [ Add New Panel ] choose countdown_panel
from the list save, enable panel and enjoy.
Setting up your Countdown
Open countdown_panel.php
To Edit The Countdown panel open countdown_panel.php and edit the following code
to suit your countdown.
around lines 16,17 find,
<script language='JavaScript'>
TargetDate = '12/25/2007 12:00 AM';
BackColor = '#FFFFFF optacity(0.5)';
ForeColor = 'blue';
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = '%%D%% Days, %%H%% Hours, %%M%% Minutes, and %%S%% Seconds Until
christmas Day!';
FinishMessage = ' Merry Christmas!';
</script>
This is the part you change to start your countdown.
Explanation
TargetDate is the date and time you wish the countdown to end.
BackColor is the background colour for the background of the countdown
script.
ForeColor is the Countdown Text Colour.
CountActive is to enable or disable the countdown, you will find you probably
will never need to change this.
LoadinZero meens if you want to display 00 at the end of each minute eg
10,9,8,7,6,5,4,3,2,1,0 or 10,9,8,7,6,5,4,3,2,1,60
DisplayFormat is the way the date will be displayed this is
Days,hours,Minutes, and Seconds by default, however if you know
what you are doing you can change the format.
Finish Message this is the message that will read when your countdown has
ended or reached the TargetDate.
CHANGELOG:
v1.00
- First public release
If you require Support using this mod visit the Fangree Productions Forums at
http://www.fangree.co.uk/
Enjoy this
Mod