/    Sign up×
Community /Pin to ProfileBookmark

Hi I have this script that i found but i would like to change the size of the timer font buti’m no scripter and can’t figure out how to do it.

Could any one give me a hand.

<P align=center><STRONG><FONT size=2><U>Interactive Data Corp Replacement Project</U></FONT></STRONG></P>
<P align=center><STRONG><FONT color=#aa0000>The clock is ticking!</STRONG></FONT></P>
<script language=”JavaScript”>
TargetDate = “03/12/2010 00:00 AM GMT+0000”;
BackColor = “#aa0000”;
ForeColor = “#ffffff”;
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = “<center>%%D%% days: %%H%% h: %%M%% m: %%S%% s</center>”;
FinishMessage = “Time’s up!”;
</script>

<script language=”JavaScript”>

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(secs) {
if (secs < 0) {
document.getElementById(“cntdwn”).innerHTML = FinishMessage;
return;
}
DisplayStr = DisplayFormat.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”).innerHTML = DisplayStr;
if (CountActive)
setTimeout(“CountBack(” + (secs+CountStepper) + “)”, SetTimeOutPeriod);
}

function putspan(backcolor, forecolor) {
document.write(“<div id=’cntdwn’ style=’background-color:” + backcolor +
“; color:” + forecolor + “‘></div>”);
}

if (typeof(BackColor)==”undefined”)
BackColor = “white”;
if (typeof(ForeColor)==”undefined”)
ForeColor= “black”;
if (typeof(TargetDate)==”undefined”)
TargetDate = “12/31/2020 5:00 AM”;
if (typeof(DisplayFormat)==”undefined”)
DisplayFormat = “%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.”;
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(BackColor, ForeColor);
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(gsecs);</script>
</td></tr></table>

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 28.2010 — &lt;style type="text/css"&gt;
#cntdwn {font-size:25px}
&lt;/style&gt;
Copy linkTweet thisAlerts:
@rj_connorauthorJan 28.2010 — Great thanks thats perfect, would it be easy to have time sitting on top of the days hours min and sec? e.g

24 12 2 45 <---these large >

Days Hours Minutes Seconds <- smaller>
×

Success!

Help @rj_connor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...