Thread: Banner Rotation
View Single Post
Old 02-12-2005, 09:46 AM  
Harmon
( ͡ʘ╭͜ʖ╮͡ʘ)
 
Harmon's Avatar
 
Industry Role:
Join Date: Mar 2004
Posts: 20,010
All you have to do is plug in the banner location, add your the URL to the banner, and make sure the dimesnions are set properly. You can add as many banners as you feel you need, just change the parameters. It does not track though. Just use something simple like this:

Code:
<SCRIPT LANGUAGE="JavaScript">


<!-- BANNER ROTATOR

var how_many_ads = 3
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;


//**************************** AD NUMBER ONE ****************

if (adhahahaha1){


url="http://www.URL.com/app/?af=219047";

alt="ALTERNATE TEXT HERE!";

banner="http://www.yourserver.com/banners/banner.gif";

width="468";
height="80";
}

//**************************** AD NUMBER TWO ****************


if (adhahahaha2) {


url="http://www.URL.com/app/?af=219047";

alt="ALTERNATE TEXT HERE!";

banner="http://www.yourserver.com/banners/banner.gif";

width="468";
height="80";
}


//**************************** AD NUMBER THREE ****************

if (adhahahaha3) {


url="http://www.URL.net/track/MTYxOjM9NL/";

alt="ALTERNATE TEXT HERE!";

banner="http://www.yourserver.com/banners/banner.gif";

width="468";
height="80";
}


document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('</center>');
-->
            </SCRIPT>
__________________
[email protected]
Harmon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote