About the Animal Kill Counter

Number of animals killed in the world by the meat, dairy and egg industries, since you opened this webpage. This does not include the billions of fish and other aquatic animals killed annually. Based on 2007 statistics from the Food and Agriculture Organization of the United Nations' Global Livestock Production and Health Atlas.

How to Install

If you are putting this code on all the pages of your site, we recommend you place the CSS part in your HEAD section of your code, the DIV content where you want the counter to go, and the SCRIPT part at the very end of your BODY section. Those three sections are indicated by the sections below.

<style type="text/css">
#counter { width: 170px; color: white; background-color: #111; font-size: 1.2em; padding: 4px 0 4px 10px; }
</style>
<div id="counter">
<div id="counter0"></div>
<divid="counter1"></div>
<div id="counter2"></div>
<div id="counter3"></div>
<div id="counter4"></div>
<div id="counter5"></div>
<div id="counter6"></div>
<div id="counter7"></div>
<div id="counter8"></div>
<div id="counter9"></div>
</div>
<p>Number of animals killed in the world by the meat, dairy and egg industries, since you opened this webpage. This does not include the billions of fish and other aquatic animals killed annually.</p>
<p>Based on <a title="Read Global Livestock Production and Health Atlas Statistics" href="http://www.abolitionistapproach.com/media/pdf/2007-glipha-stats.pdf ">2007 statistics</a> from the Food and Agriculture Organization of the United Nations' <a title="Visit Global Livestock Production and Health Atlas Website" href="http://kids.fao.org/glipha/">Global Livestock Production and Health Atlas</a>.</p>
<p><a title="Get this counter at beAutomated.com" href="http://www.beautomated.com/counter">Get this counter »</a></p>
<script type="text/javascript">
//Based on 2007 Food and Agriculture Organization of the United Nations'
//Global Livestock Production and Health Atlas
//http://www.abolitionistapproach.com/media/pdf/2007-statistics.pdf.
var animals_per_year = new Array(
new Array("buffaloes", 23199336),
new Array("camels", 1501799),
new Array("cattle", 301275455),
new Array("chickens", 49877536490),
new Array("ducks", 2676365000),
new Array("goats", 402611664),
new Array("horses", 5018470),
new Array("pigs", 1375940758),
new Array("sheep", 564785251),
new Array("turkeys", 635382008)
);
var seconds_elapsed = 0;
var seconds_per_year = 365.256366 * 24 * 60 * 60;
function runCounter() { for (var i = 0; i < animals_per_year.length; i++) { var current = animals_per_year[i][1] / seconds_per_year * seconds_elapsed; document.getElementById("counter" + i).innerHTML = addCommas("" + Math.floor(current)) + " " + animals_per_year[i][0]; } seconds_elapsed += 0.25; setTimeout("runCounter()", 250); }
function addCommas(sValue) { var sRegExp = new RegExp("(-?[0-9]+)([0-9]{3})"); while (sRegExp.test(sValue)) { sValue = sValue.replace(sRegExp, "$1,$2"); } return sValue; }
runCounter();
</script>