Home   About   Popular   Archives   Advertise   PhotoBlog   WP-Theme   GuestBlogging   Projects   Contact

Alternate Ads in Javascript Disabled Browsers using Noscript

March 24th, 2006 | Filed under Tips.

You know that the Google Adsense code (and also of several other affiliate programs) is a javascript code. So if the visitor has an old outdated browser version, or has manually turned off javascript in the browser settings - you do not see the ad. You can utilize this space to show an alternate ad.

The idea was suggested by Thilak and is also drawn from this way to show SFX banners instead of Google ads when JavaScript is turned off. The tag noscript is used to specify the content which should be shown when the javascript code is not supported. So insert any content between the noscript tags <_noscript>your code<_/noscript> (remove the _) to show the alternate url. Although you are not altering the Google Adsense code in any way and it should not violate their terms, but it is always best to check with Adsense support before doing this.

Now you might ask, that the Google Adsense code / other javascript codes have a facility to specify an alternate ad to show incase a targetted ad is not available. This is different. In javascript disabled browsers, the whole code will not show, which includes your alternate ad specified between the javascript.



Related articles
» Javacript Disabled Browsers : Make Money with NoScript
» Add Our Headlines to Your Site
» Optimize Adsense : Modify Code & Alternate Ads to Test Channels
» Best of 2006 : March
» Use Alternate Ads in Adsense / Chitika : Monetize Non Paying PSA Advertising
» Use Google Adsense Collapsing Ad Units
» Simple Scripts to Password Protect Your Webpage
» CSS Stylesheet Switching : Ad Free Option to Website Visitors
» 5 More Ways to Earn Extra Money Online
» Yahoo Publisher Network : Run of Network Ads (RON ads)

Get latest tips like this for free.

Comments

  • Shane | 24/03/06  #

    I free give away my content on my site and I use java script to do this. So I have the noscript tag in it too. You can take a look at if you want.

Comment on “Alternate Ads in Javascript Disabled Browsers using Noscript”