Jump to content


Photo
- - - - -

Using Javascript To Limit Ad Display


  • Please log in to reply
No replies to this topic

#1 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 895 posts

Posted 07 May 2005 - 06:49 AM

Hi everone,

I read an interesting discussion on the russelbeattie.com website about a method that russel and several other people are using to ensure that Ads are only displayed to people referred to the site thru a search engine. The ads will not be displayed to a user who visits the site directly (e.g. via a bookmark). This gives some favourable treatment to regular visitors while also acknowledging that they probably won't click on ads very often anyway!

To achieve the selective display of ads, russel and others are using javascript. The javascript examines the REFERRER and then determines whether or not to display the advert. I am a bit rusty of javascripting so will take some time (and perhaps your help) to properly assess the code.

An example of the code can be found at http://sastools.com/b2/ by viewing the source code of this site. The way I did it (with IE6) was to save the page to my hard disk and then to examine the asp file in the downloaded page folder.

I am considering using this code to perhaps not completely remove ads for regular visitors but instead to REDUCE the number of ads shown to them. I believe this would achieve a good balance between revenue and rewarding visitor loyalty.

Cheers, Glen
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users