Have you ever wondered how I got that spiffy Firefox downloads counter? Well it's not too simple unless you have some programming skills. So for those who don't, here is a simple way to implement the counter into your webpage.

All you have to do to put this counter on your page is include the following code wherever you want it to appear.


<script type="text/javascript" src="http://firefoxtutor.com/fxc.php"></script>

And this is what we get: .

If you're using a mail application with a feed aggregator built in to view this, such as Thunderbird, you probably can't see the counter. These programs usually don't allow JavaScript to run by default, and the counter relies on javascript.

This uses JavaScript to add the counter to your page. The counter is inside a span with the id firefoxcounter. This means you can style the text however you want, using CSS. Here is an example of what you might put in your CSS code:


#firefoxcounter {
  font-weight: bold;
  color: red;
}

This would make the counter's text bold and colored red.

Update: Now you can choose whether you want the counter to link to www.getfirefox.com. The below edited code would link the counter.


<script type="text/javascript" src="http://firefoxtutor.com/fxc.php?link=1"></script>

I hope you enjoy using this counter on your webpage. Here are links to where you can find more ways to put it on your page, and also the source XML feed used to generate the counter (provided by www.spreadfirefox.com).

http://www.spreadfirefox.com/?q=node/view/15143
http://www.spreadfirefox.com/download_counter.php?ff=1

This Firefox download counter is provided as a free service by www.spreadfirefox.com and www.firefoxtutor.com. Both of these sites reserve the right to terminate the service at any time, rendering your counter broken, without notification to any site using this service.