Bannermaster Examples

Using Standard HTML/Non-SSI

Note, Text Banners will NOT work in Non-SSI Mode also, it is a good idea to send a random number, using "x-factor" along with the IMG call to stop the browser from caching the images.

Note in each example, we use ?x-factor=# to force a different banner in each call. Failing to do this will cause browsers to cache images, and your visitors will repeatedly see the same banner on every page...EVERY banner IMG call you make should have a different, and unique "x-factor" associated with it.

NOTE We use "exchange.cgi" instead of "bm.cgi" for exchange banners!
  1. Allowing Bannermaster to rotate all accounts...
         <A HREF="/path/to/click.cgi?x-factor=1">
         <IMG SRC="/path/to/bms.cgi?x-factor=1"></A>
       
  2. Pointing Bannermaster at a specific group...
         <A HREF="/path/to/click.cgi?x-factor=2">
         <IMG SRC="/path/to/bms.cgi?group=Sample&x-factor=2"></A>
       
  3. Using Javascript to automatically generate a random number to make sure the banner images don't get cached by browsers... Note that each banner here is different (no matter how many times you reload), and that each "clicks" to the proper URL.









    Here's The CODE ....

    (*Repeat this for each banner you want to show on a page*)
    (*Place this code WHEREVER you want the banner to show*)
    <script language="JavaScript">
       <!-- Hide the script from old browsers --
    
       // CHANGE THESE 3 Variables for yourself
    
          var click = "http://internet/cgi-bin/click.cgi";
          var bms = "http://internet/cgi-bin/bms.cgi";
          var bm = "http://internet/cgi-bin/bm.cgi";
    
       // LEAVE THE REST ALONE
    
    
       var axel = Math.random() + ""
       var rand1 = axel.charAt(5)
       var rand2 = (axel.charAt(6) == "0") ? "1" : axel.charAt(6)
       var random = rand1 + rand2 + ""
       var bN = navigator.appName; 
       var bV = parseInt(navigator.appVersion); 
       var agt = navigator.userAgent.toLowerCase(); 
    
    
       if (bN=='Netscape') { 
           var banner = '<a href="' + click + '?x-factor=' + random + '">' + 
               '<img src="' + bms + '?x-factor=' + random + '" border=0></a>';
       }
    
       if (bN=='Microsoft Internet Explorer') {
           var banner = '<ifr'+'ame id=IBG src="' + bm + '" width=468 height=73' + 
               'marginwidth=0 marginheight=0 hspace=0 vspace=0 ' + 
               'frameborder=0 scrolling=no></ifr'+'ame>'; 
       }
    
       document.write(banner);
    
       //--End Hiding Here -->
    </script>
    
... From Scott ...