By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,855 Members | 1,970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,855 IT Pros & Developers. It's quick & easy.

count down timer source code updated to 06/11/27

P: n/a
Hello guys, free count down timer source code has updated to 06/11/27,
you can copy the code below and save in a ".htm" file and run it in a
browser support javascript 1.1 or later, or you can open
http:\\www.fillweb.com\countdown.htm, if you are using IE, you may
View->Source to see the latest version of source code !
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>Fillweb free count down timer source code</title>
<meta name="keywords" content="count down timer, fillweb, form filler,
fill forms automatically, account logon login, single sign on, fill web
forms, fill online forms automatically, form filling software, ai web
automatic auto fill out forms fill in forms">
<script language="JavaScript">
var timerID = 0;
var timerRunning = 0;
var today = 0;
var startday = 0;
var secPerDay = 0;
var minPerDay = 0;
var hourPerDay = 0;
var secsLeft = 0;
var secsRound = 0;
var secsRemain = 0;
var minLeft = 0;
var minRound = 0;
var minRemain = 0;
var timeRemain = 0;
/* This function will stop the clock */
function stopclock()
{
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
/* This function will start the clock */
function startclock()
{
stopclock();
countdown();
}
function startclock_cn()
{
stopclock();
showtime_cn();
}
/* This function will display the count-up */
function countdown()
{
startday = new Date("August 08, 2008 00:00 GMT");
today = new Date();
secsPerDay = 1000 ;
minPerDay = 60 * 1000 ;
hoursPerDay = 60 * 60 * 1000;
PerDay = 24 * 60 * 60 * 1000;
/* Seconds */
secsLeft = (startday.getTime() - today.getTime()) / minPerDay;
secsRound = Math.round(secsLeft);
secsRemain = secsLeft - secsRound;
secsRemain = (secsRemain < 0) ? secsRemain = 60 - ((secsRound -
secsLeft) * 60) : secsRemain = (secsLeft - secsRound) * 60;
secsRemain = Math.round(secsRemain);
/* Minutes */
minLeft = ((startday.getTime() - today.getTime()) /
hoursPerDay);
minRound = Math.round(minLeft);
minRemain = minLeft - minRound;
minRemain = (minRemain < 0) ? minRemain = 60 - ((minRound -
minLeft) * 60) : minRemain = ((minLeft - minRound) * 60);
minRemain = Math.round(minRemain - 0.495);
/* Hours */
hoursLeft = ((startday.getTime() - today.getTime()) / PerDay);
hoursRound = Math.round(hoursLeft);
hoursRemain = hoursLeft - hoursRound;
hoursRemain = (hoursRemain < 0) ? hoursRemain = 24 -
((hoursRound - hoursLeft) * 24) : hoursRemain = ((hoursLeft -
hoursRound) * 24);
hoursRemain = Math.round(hoursRemain - 0.5);
/* Days */
daysLeft = ((startday.getTime() - today.getTime()) / PerDay);
daysLeft = (daysLeft - 0.5);
daysRound = Math.round(daysLeft);
daysRemain = daysRound;
/* Time */
if (daysRemain < 2)
{
day_rem = " day, "
}
else
{
day_rem = " days, "
}
if (hoursRemain < 2)
{
hour_rem = " hour, "
}
else
{
hour_rem = " hours, "
}
if (minRemain < 2)
{
min_rem = " minute, "
}
else
{
min_rem = " minutes, "
}
if (secsRemain < 2)
{
sec_rem = " second"
}
else
{
sec_rem = " seconds"
}
timeRemain = "Beijing 2008 Olympic Games is coming in " +
daysRemain + day_rem + hoursRemain + hour_rem + minRemain +
min_rem + secsRemain + sec_rem;
document.counter.face.value = timeRemain;
timerID = setTimeout("countdown()",1000);
timerRunning = true;
}
//-->
</script>
</head>
<body onLoad="startclock()" bgcolor="#FFFFFF">
<table border="0" width="100%">
<tr>
<td align="center">
<img border="0" src="images/beijing2008.gif" width="250"
height="300"></td>
</tr>
<tr>
<td align="center">
<form name="counter" style="position: relative">
&nbsp;<input type="text" name="face" size="100" value="Please open
this page with JavaScript 1.1+ browser." style="border-style:dotted;
border-width:1px; font-size:9pt; color:#000000; text-align:center;
padding-left:4px; padding-right:4px; padding-top:1px;
padding-bottom:1px; position:relative"></form>
</td>
</tr>
</table>
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-859503-1";
urchinTracker();
</script>
</body>
</html>

Nov 27 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a

He********@gmail.com wrote:
Hello guys, free count down timer source code [...]
Your script is crap, this is not your personal publishing list.
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-859503-1";
urchinTracker();
</script>
Do you really expect people to include that?

--
Fred

Nov 27 '06 #2

P: n/a
Fred escreveu:
He********@gmail.com wrote:
>Hello guys, free count down timer source code [...]

Your script is crap, this is not your personal publishing list.
Wow, agressive >=]
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Nov 27 '06 #3

P: n/a
It's really a cool code I was always looking for, thanks very much

Gates

Nov 27 '06 #4

P: n/a
Jonas Raoni wrote:
Fred escreveu:
He********@gmail.com wrote:
Hello guys, free count down timer source code [...]
Your script is crap, this is not your personal publishing list.

Wow, agressive >=]
It's the fourth time in less than a month that this junk has been
posted here. Initial responses were polite with advice on how to make
the code better and requests to post with a subject prefixed by ANN:.
All advice was ignored, the same awful code continues to be posted.

It is therefore reasonable to assume that the poster either doesn't
read responses or refuses to accept advice. Further, he or she is not
only ignorant of polite etiquette but also refuses to learn.

Anyone discovering the code and seeing no response might assume tacit
approval - the standard of the code is barely that of a javascript
newbie, it does not deserve any kind of endorsement. There are many
other places this stuff can be published for free, let the OP post
there.
--
Fred

Nov 27 '06 #5

P: n/a
Assault and battery was not expect in google group

Fred wrote:
Your script is crap, this is not your personal publishing list.
It's the fourth time in less than a month that this junk has been
posted here. Initial responses were polite with advice on how to make
the code better and requests to post with a subject prefixed by ANN:.
All advice was ignored, the same awful code continues to be posted.

It is therefore reasonable to assume that the poster either doesn't
read responses or refuses to accept advice. Further, he or she is not
only ignorant of polite etiquette but also refuses to learn.

Anyone discovering the code and seeing no response might assume tacit
approval - the standard of the code is barely that of a javascript
newbie, it does not deserve any kind of endorsement. There are many
other places this stuff can be published for free, let the OP post
there.
--
Fred
Nov 27 '06 #6

P: n/a
un*****@gmail.com said the following on 11/27/2006 7:56 AM:
Assault and battery was not expect in google group
Neither is stupidity but it didn't stop you.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 27 '06 #7

P: n/a
In comp.lang.javascript message
<11**********************@j72g2000cwa.googlegroups .com>, Sun, 26 Nov
2006 20:59:16, He********@gmail.com wrote:
>Hello guys, free count down timer source code has updated to 06/11/27,
you can copy the code below and save in a ".htm" file and run it in a
browser support javascript 1.1 or later, or you can open
http:\\www.fillweb.com\countdown.htm, if you are using IE, you may
View->Source to see the latest version of source code !
A persuasive display of incompetence.

I have indicated some of the faults -
><script language="JavaScript">
Deprecated.

secsPerDay = 1000 ;
minPerDay = 60 * 1000 ;
hoursPerDay = 60 * 60 * 1000;
The usual values are 86400, 1440, & 24.

if (daysRemain < 2)
{
day_rem = " day, "
}
else
{
day_rem = " days, "
}
if (hoursRemain < 2)
{
hour_rem = " hour, "
}
else
{
hour_rem = " hours, "
}
if (minRemain < 2)
{
min_rem = " minute, "
}
else
{
min_rem = " minutes, "
}
if (secsRemain < 2)
{
sec_rem = " second"
}
else
{
sec_rem = " seconds"
}
So you do not understand when small functions should be written and
used.

>border-width:1px; font-size:9pt; color:#000000; text-align:center;
Contrary to Disability Discrimination principles.

--
(c) John Stockton, Surrey, UK. ??*@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
Nov 27 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.