http://www.aardvarktopsitesphp.com/foru ... php?t=5323
You can check the demo here:
http://www.articledirectory.cn/toplist/
rotator js: save as .js and put them where ever you want!
- Code: Select all
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 (ad==1){
url="link1";
alt="alt1";
banner="banner1";
des="description1"
width="468";
height="60";
}
//**************************** AD NUMBER TWO ****************
if (ad==2) {
url="link2";
alt="alt2";
banner="banner2";
des="description2"
width="468";
height="60";
}
//**************************** AD NUMBER ONE ****************
if (ad==3) {
url="link3";
alt="alt3";
banner="banner3";
des="description3"
width="468";
height="60";
}
document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0></a><br>');
document.write('' + des + '');
only three banner ads, you can add as many as you want!
And then modify you ad_break.htm
below is mine,you should change the link
- Code: Select all
<div class="table_border">
<table cellpadding="1" cellspacing="1" border="0">
<tr>
<td class="table_top_title" colspan="4" width="100%"><div class="titleleft"><div class="titleright"><a href="http://www.articledirectory.cn/toplist/" onclick="out('cam');" class="table_top">Sponsor</a> - <a href="http://www.articledirectory.cn/toplist/" class="table_top">Stats</a></div></div></td>
</tr>
<tr>
<td rowspan="3" class="table_top_rank" width="6%">X</td>
<td rowspan="3" class="table_description" width="50%">
<SCRIPT LANGUAGE="JavaScript" src="http://www.articledirectory.cn/toplist/rotator.js"></script><br />
<b>Category:</b> <a href="http://www.articledirectory.cn/toplist/">Sponsor</a> | <b>Movement:</b> <img src="http://www.articledirectory.cn/toplist/skins/ac-blue/neutral.png" alt="Neutral" align="absmiddle" />
</td>
<td class="table_top_stats" width="22%" nowrap><b>Today</b></td>
<td class="table_top_stats" width="22%">X</td>
</tr>
<tr>
<td class="table_top_stats" width="22%" nowrap><b>Average</b></td>
<td class="table_top_stats" width="22%">X</td>
</tr>
<tr>
<td colspan="2" class="table_top_rating" width="17%"><img src="http://www.articledirectory.cn/toplist/skins/ac-blue/rate_0.png" bgcolor="transparent" alt="0/5" /></td>
</tr>
</table>
</div>
this code made the ads look like the common sites
below's my ad:
If you run an article site, pls join my topsite:
http://www.articledirectory.cn/toplist/
