| In Ban Man Pro 5.0 and higher, the
following types of ad code are available. You must use the code
produced by Ban Man Pro in its entirety. Making modifications is not
supported. You will notice some of
the ad tags contain a pageID. This is simply for enhanced cache
defeating in very old browsers (version 3.0) and earlier. These
browsers represented a very tiny share of the market and we don't recommend
worrying about modifying this number. |
| Advanced Java
Code (Highly Recommended) --
Serves rich media ads and defeats cache. This
zone will refresh every 5 seconds in IFRAME compatible browsers (IE
and Netscape 6 or higher). |
| This code is the most flexible
of the browser side codes that we offer. This
code also provides the best performance from a server standpoint in both
memory usage and the speed of delivery of ads. This code is capable of
serving up rich media ads. The browser type is determined using
JavaScript on the client side and then determines what type of ad to pull
based on the browser. Be careful when placing this code on your
pages as outlined here so that it appears
properly in Netscape 3. This code also defeats the cache all the
time when reloading a page, even MOST of the time when clicking back on your browser.
IE browsers may not reload a new image when clicking back. This code will
maximize the number of impressions served by your web site. This
code also supports automatically refreshing and loading a new ad every X
seconds in IFRAME compatible browsers.
Here is a sampling of this code:
<!-- Begin Ban Man Pro Banner Code -->
<SCRIPT LANGUAGE="JAVASCRIPT"><!--
var browName = navigator.appName;
var browVersion = parseInt(navigator.appVersion);
var ua=navigator.userAgent.toLowerCase();
var adcode='';
if (browName=='Netscape'){
if ((browVersion>=4)&&(ua.indexOf("mac")==-1))
{ document.write('<S'+'CRIPT src="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Get&
Browser=NETSCAPE4">');
document.write('</'+'scr'+'ipt>');
document.write(adcode); }
else if (browVersion>=3)
{ document.write('<A HREF="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Click
&Mode=HTML" target="_new"><IMG SRC="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Get&
Mode=HTML&fightcache=' + (new Date()).getTime() + '" width="468" height="60" border="0"></A>'); } }
if (browName=='Microsoft Internet Explorer')
{ document.write('<ifr'+'ame src="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Get" width=468 height=60 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No></ifr'+'ame>'); }
// -->
</script>
<noscript>
<a href="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Click&
Mode=HTML&PageID=73886" target="_new">
<img src="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Get&
Mode=HTML&PageID=73886" width="468" height="60" border="0"></a>
</noscript>
<!-- End Ban Man Pro Banner Code -->
|
| Non-IFRAME Java
Code |
| Serves any type of banner including rich
media. Use this code if you are serving rollover, expanding, or moving
banners that cannot be displayed inside the IFRAME window. You can also use
this code if displaying different sized banners in the same zone. This code
does not support the zone refresh option.
<SCRIPT
LANGUAGE="JAVASCRIPT">
var browName = navigator.appName;
var browDateTime = (new Date()).getTime();
if (browName=='Netscape')
{
document.write('<S'+'CRIPT LANG' + 'UAGE="JAV' + 'ASCRIPT" src="http://www.somedomain.com/BanManPro5/ad.aspx?ZoneID=9&
Task=Get&IFR=False&Browser=NETSCAPE4&PageID=25445&
SiteID=1' + '&Random=' + browDateTime + '">'); document.write('</'+'scr'+'ipt>');
}
if (browName!='Netscape')
{
document.write('<S'+'CRIPT LANG' + 'UAGE="JAV' + 'ASCRIPT" src="http://www.somedomain.com/BanManPro5/ad.aspx?ZoneID=9&Task=Get
&IFR=False&PageID=25445&SiteID=1' + '&Random=' + browDateTime + '">');
document.write('</'+'scr'+'ipt>');
}
</script>
|
| Non-Cache
Defeating Code |
| Similar to the Advanced
JavaScript, this code can serve rich media ads. The drawback is this
code does not defeat the browser cache when clicking back on your
browser. This code is useful if you are dynamically
generating your pages and can tag on the random PageID number using code.
Please note that in this code the PageID appears in 4 places. This code is
also useful if you aren't concerned about browser
caching.
Note: This code should also be used in
HTML newsletters over the Advanced JavaScript code.
This zone will refresh every 5 seconds
in IFRAME compatible browsers (IE and Netscape 6 or higher).
Here is a sample of this code:
<!-- Begin Ban Man Pro Banner Code -->
<IFRAME SRC="http://bc01/banmanprosql/banman.asp?ZoneID=19
&Task=Get&PageID=73886" width=468 height=60 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No>
<SCRIPT LANGUAGE='JAVASCRIPT1.1' SRC="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Get&
Browser=NETSCAPE4&NoCache=True&PageID=73886"></SCRIPT>
<NOSCRIPT><a href="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Click
&Mode=HTML&PageID=73886" target="_new">
<img src="http://bc01/banmanprosql/banman.asp?ZoneID=19&Task=Get
&Mode=HTML&PageID=73886" width="468" height="60" border="0"></a>
</NOSCRIPT>
</IFRAME>
<!-- End Ban Man Pro Banner Code -->
|
| Asp.net control
Code |
| Use this code to display banners using an
ASP.NET control (VB.NET). This code does not support the zone refresh
option. This is probably the most flexible of all the code because all
pages are rendered on the server before being sent back to the browser.
The drawback of this code is that you can only serve a web site URL at which
Ban Man Pro has been installed. Another drawback is that this only
works from within ASP.net web pages.
An example of this code is:
<%@ Register TagPrefix="ucAdvertisement"
TagName="ctlDisplayAd" Src="banmanpro/ctlDisplayAd.ascx" %>
<uc1:ctlDisplayAd id="CtlDisplayAd1" runat="server" ZoneID="9" SiteID="1"
Keywords=""></uc1:ctlDisplayAd>
|
|
Sponsorship Code |
|
Serves all campaigns in a zone and
rotates them up the page with each refresh. Change
CountImpressions to False if you do not want to count impressions.
Change Total=0 to the total number of banners to display. 0
will display all banners in the zone. For example, if you
have 8 banners in the zone and only want to display four at-a-time
then set Total=4.
<SCRIPT
LANGUAGE='JAVASCRIPT' SRC="http://65.165.64.157/BanManPro5/sequence2.aspx?
ZoneID=9&CountImpressions=True&Total=0&SiteID=1"></SCRIPT> |