Kill Counter Code

Please credit www.adaptt.org for the code by NOT deleting the html link. Thank you.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<!-- ___________________________________________________________
killcounter-code.html
XGB Web and Software Design ~ www.xgbdesign.com
N.B.: This code was substantially modified in July 2011.
___________________________________________________________
-->
<link rel="shortcut icon"
 href="grfx/main/a.ico">
<!-- Add JavaScript variables and functions for the ADAPTT Kill Counter: -->
<script type="text/javascript">
// Global variables: ___________________________________________________________________
var counts = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];
var rate = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];
// Functions: __________________________________________________________________________
function StartKillCounter() {
var millions = [ 90000, 45895, 2262, 1244, 857, 691, 533, 515, 345, 292, 65, 63, 23, 16, 4, 4, 3, 2 ];
var perSecond = 8;
for (var i = 0; i < counts.length; ++i) rate[i] = millions[i] * 1000000 / 365 / 24 / 60 / 60 / perSecond;
setInterval(NewCounts, 1000 / perSecond);
}
function NewCounts() {
var num, thous, str;
for (var i = 0; i < counts.length; ++i) {
counts[i] += rate[i];
num = Math.round(counts[i]);
str = "";
while (num > 1000) {
thous = num % 1000;
if (thous < 10)
thous = "00" + thous;
else if (thous < 100)
thous = "0" + thous;
str = "," + thous + str;
num = Math.floor(num / 1000);
}
str = num + str;
document.getElementById("count" + i).innerHTML = str;
}
}
</script><!-- Add local CSS for the ADAPTT Kill Counter. Please Note: This code block MUST contain AT MINIMUM the following code: -->
<style type="text/css">
span#count0, span#count1, span#count2, span#count3, span#count4, span#count5, span#count6, span#count7, span#count8, span#count9, span#count10, span#count11, span#count12, span#count13, span#count14, span#count15, span#count16, span#count17 { display: inline; }
</style><!-- Begin Google Analytics code: -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-44763726-1', 'adaptt.org');
ga('send', 'pageview');
</script><!-- Begin the ADAPTT Kill Counter: -->
<h4 style="color: rgb(153, 0, 0);">Animals
slaughtered since you opened the page:</h4>
<p style="color: rgb(153, 0, 0);">
<span id="count0">0</span>&nbsp;marine
animals<br>
<span id="count1">0</span>&nbsp;chickens<br>
<span id="count2">0</span>&nbsp;ducks<br>
<span id="count3">0</span>&nbsp;pigs<br>
<span id="count4">0</span>&nbsp;rabbits<br>
<span id="count5">0</span>&nbsp;turkeys<br>
<span id="count6">0</span>&nbsp;geese<br>
<span id="count7">0</span>&nbsp;sheep<br>
<span id="count8">0</span>&nbsp;goats<br>
<span id="count9">0</span>&nbsp;cows
and calves<br>
<span id="count10">0</span>&nbsp;rodents<br>
<span id="count11">0</span>&nbsp;pigeons
and other birds<br>
<span id="count12">0</span>&nbsp;buffaloes<br>
<span id="count13">0</span>&nbsp;dogs<br>
<span id="count14">0</span>&nbsp;cats<br>
<span id="count15">0</span>&nbsp;horses<br>
<span id="count16">0</span>&nbsp;donkeys
and mules<br>
<span id="count17">0</span>&nbsp;camels
and other camelids
</p>
<script type="text/javascript">
StartKillCounter();
</script>
<p><span
 style="color: rgb(153, 0, 0);"> Credit goes to</span>
<a href="http://www.adaptt.org">ADAPTT</a>
</p>
<!--!doctype-->
</body>
</html>