Прошу прощения, не совсем понял что именно поменять. Вот полный скрипт таймера:
<?php
/*---------------------------------------------------------
# Count Down - Joomla! Module
# ---------------------------------------------------------
# For Joomla! 2.5.x & Joomla! 3.1.x
# Copyright (C) 2013 Joomla357.com. All rights reserved.
# License: GNU/GPLv3,
http://www.gnu.org/licenses/gpl-3.0.html# Demo:
http://www.joola357.com/demo/# Website:
http://www.joola357.com# Support: support@joola357.com
----------------------------------------------------------- */
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// Parameters
$date = $params->get('date', '12/06/2014');
$time = $params->get('time', '16:30');
$fronttext = $params->get('fronttext', 'The FIFA World Cup 2014 in Brazil will start in');
$endtext = $params->get('endtext', '!');
$finish = $params->get('finish', 'The FIFA World Cup 2014 in Brazil has been started!');
$day = substr($date,0,2);
$month = substr($date,3,2);
$year = substr($date,6,4);
$hour = substr($time,0,2);
$minutes = substr($time,3,2);
$dateformat = $month.'/'.$day.'/'.$year.' '.$hour.':'.$minutes;
?>
<script language="JavaScript" type="text/javascript">
TargetDate = "<?php echo $dateformat;?>";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat<?php echo $module->id?> = "<?php echo $fronttext; ?> %%D%% <?php echo JText::_('CD_DAYS')?>, %%H%% <?php echo JText::_('CD_HOURS')?>, %%M%%:%%S%% <?php echo JText::_('CD_MINUTES')?> <?php echo $endtext; ?>";
FinishMessage<?php echo $module->id?> = "<?php echo $finish; ?>";
/*
Author: Robert Hashemian
http://www.hashemian.com/You can use this code in any manner so long as the author's
name, Web address and this disclaimer is kept intact.
********************************************************
*/
function calcage(secs, num1, num2) {
s = ((Math.floor(secs/num1))%num2).toString();
if (LeadingZero && s.length < 2)
s = "0" + s;
return "<b>" + s + "</b>";
}
function CountBack<?php echo $module->id?>(secs) {
if (secs < 0) {
document.getElementById("cntdwn<?php echo $module->id?>").innerHTML = FinishMessage<?php echo $module->id?>;
return;
}
DisplayStr = DisplayFormat<?php echo $module->id?>.replace(/%%D%%/g, calcage(secs,86400,100000));
DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,24));
DisplayStr = DisplayStr.replace(/%%M%%/g, calcage(secs,60,60));
DisplayStr = DisplayStr.replace(/%%S%%/g, calcage(secs,1,60));
document.getElementById("cntdwn<?php echo $module->id?>").innerHTML = DisplayStr;
if (CountActive)
setTimeout("CountBack<?php echo $module->id?>(" + (secs+CountStepper) + ")", SetTimeOutPeriod);
}
function putspan<?php echo $module->id?>() {
document.write("<div id='cntdwn<?php echo $module->id?>' class='countdown'></div>");
}
if (typeof(TargetDate)=="undefined")
TargetDate = "12/31/2020 5:00 AM";
if (typeof(DisplayFormat)=="undefined")
DisplayFormat = "%%D%% Дней, %%H%% Часов, %%M%% Минут, %%S%% Секунд.";
if (typeof(CountActive)=="undefined")
CountActive = true;
if (typeof(FinishMessage)=="undefined")
FinishMessage = "";
if (typeof(CountStepper)!="number")
CountStepper = -1;
if (typeof(LeadingZero)=="undefined")
LeadingZero = true;
CountStepper = Math.ceil(CountStepper);
if (CountStepper == 0)
CountActive = false;
var SetTimeOutPeriod = (Math.abs(CountStepper)-1)*1000 + 990;
putspan<?php echo $module->id?>();
var dthen = new Date(TargetDate);
var dnow = new Date();
if(CountStepper>0)
ddiff = new Date(dnow-dthen);
else
ddiff = new Date(dthen-dnow);
gsecs = Math.floor(ddiff.valueOf()/1000);
CountBack<?php echo $module->id?>(gsecs);
</script>
заранее спасибо