(Refresh the site to see the banner change.)



Banner rotating



Put this between your BODY-tags:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var how_many_ads = 4;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="Infolinx - A Norwegian site";
url="http://www.infolinx-no.com";
alt="Infolinx";
banner="http://www.infolinx-no.com/ssi/bilder/logo/inf4c.jpg";
width="380";
height="80";
}
if (ad==2) {
txt="Winfolinx - where you find everything for your web pages!";
url="http://www.winfolinx.com";
alt="Winfolinx.com";
banner="http://www.winfolinx.com/bilder/winfolinx7.jpg";
width="380";
height="80";
}
if (ad==3) {
txt="Newsletter from XDrive";
url="http://service.bfast.com/bfast/click?bfmid=14524098&siteid=37456837&bfpage=intelligentx";
alt="Newsletter from XDrive";
banner="http://www.xdrive.com/images/marketing/banners/ixbanner1.gif";
width="468";
height="60";
}
if (ad==4) {
txt="Get a resource every day!";
url="http://www.linkcounter.com/go.php?linkid=89156";
alt="Resource-a-day.com";
banner="http://www.resource-a-day.com/images/rdc.gif";
width="470";
height="40";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</SCRIPT></font>
var how_many_ads = n; where n is the number of ads you will rotate
txt="..."; this is the text that appears below the banner (you can remove this line if you wish not to include a banner text)
url="..."; this is the link address of the banner
alt="..."; this is the text that will appear in replace of the banner in case the banner does not load (this also appears when you move your mouse over the banner)
banner="..."; this is the url of the banner image to be rotated

Free JavaScripts provided
by Winfolinx.com




Back