Code and Coffee


How To Support Firefox

Posted on October 27, 2006, under Browsers, Development, Software.

Jamey, over at the Spread Firefox blog has a post about some new cool banners for Firefox. Those new banners parked an idea on how to help support Firefox. A lot of bloggers use Adsense, the reason I do is to help cover the cost of bandwidth for this blog. AdSense has a great feature where you can display other banner ads when Google has no banner ads to display. Why not give those unused impressions to Firefox? I have put together a little kit that easily allows you to do so. Here’s how:

Step 1: Download

Down the necessary files that I have thrown together.

Step 2: Upload

Upload the graphics found in the “/img/*.png” directory to your site, in addition “/spreadfirefox.php” file.

Step 3: Change Adsense Code

There is a one line change you need to make to our AdSense code:

[js]
google_alternate_ad_url = “http://www.YOURDOMAIN.com/spreadfirefox.php?fSize=120×240″;
[/js]

This should be put in with the other variables, to make your AdSense code look like this:

[js]


[/js]

There are several sizes included, and I will add more as time permits. Sizes are 120×240, 300×250, and 468×60.

Done!

That’s it. The PHP file includes easy variable changes if your images are located in a different directory, but most people have them in “/img” directory. Enjoy and share the code, and share Firefox!

Popularity: 4% [?]