Hi i also used orbitcycle but i didn't like it. Here is what i have now, its pretty simply and allow you to rotate up to 10 banners, a link text below the banner and the alt tag.
As i said its pretty simple, it only rotates banners in your site, no stats, no number of impressions, etc.
Hope it works for you.
!-- Empieza Codigo
var no_patrocinadores = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % no_patrocinadores;
ad +=1;
if (ad==1) {
txt="";
url="http://www.explora-acapulco.com/";
alt="Explora Acapulco";
img_src="pub/banner02.GIF";
width="468";
height="60";
}
if (ad==2) {
txt="";
url="http://www.aia.org/";
alt="AIA ON LINE";
img_src="pub/aiabanner.gif";
width="468";
height="60";
}
if (ad==3) {
txt="";
url="http://www.arquired.net/";
alt="arqui-red : arquitectura en la red";
img_src="pub/arquired.gif";
width="468";
height="60";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + img_src + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0>
');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// Termina Codigo --
Just change
var no_patrocinadores =
3;
to the number of banners you want to rotate, then add the following
if (ad==2) {
txt="";
url="http://www.aia.org/";
alt="AIA ON LINE";
img_src="pub/aiabanner.gif";
width="468";
height="60";
}
and change
if (add==
2) {
to the number of banner. and remember to add the
< >at the start and end of the script, i have to remove them because the script wasnt printed on the thread.
cheers
Carlos Alcocer
http://www.arquired.net