Banner Rotator JS, hope useful

Various mods to change or add features.

Banner Rotator JS, hope useful

Postby moonswamp » 2007-05-05 11:54 pm

First: I use this blue skin:
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/
moonswamp
Newbie
 
Posts: 3
Joined: 2007-04-19 02:38 pm

Postby Jeremy » 2007-05-06 12:17 am

thanks for this post, a lot of people have been asking for this
Jeremy
Supreme Diety
 
Posts: 8922
Joined: 2003-05-05 04:41 pm
Location: NJ, USA

Postby kamranrocksit » 2007-08-19 05:15 pm

thats awesome, i was looking for that!!!
kamranrocksit
Advanced Member
 
Posts: 120
Joined: 2007-02-26 08:58 pm

Thanks

Postby hopper1964 » 2007-10-22 04:33 pm

I have just implimented this on my site, what a doddle that was and great results. Thanks
hopper1964
Newbie
 
Posts: 3
Joined: 2007-05-17 05:43 pm
Location: UK

Postby autotech123 » 2007-11-02 01:32 pm

Nice addon. I think I'll try it
autotech123
Newbie
 
Posts: 2
Joined: 2007-11-02 01:21 pm
Location: US

Postby mrproxy » 2007-11-04 02:07 am

The links to those themes are dead, on that page you mentioned
mrproxy
Member
 
Posts: 14
Joined: 2007-10-22 10:13 am

Postby asnimetop » 2007-11-06 03:01 am

Is it Possible on my skin?
http://www.animestream.org
http://www.phpbb3topsites.com
asnimetop
Member
 
Posts: 27
Joined: 2007-09-29 10:25 pm

Re: Banner Rotator JS, hope useful

Postby vipholiday » 2008-01-22 08:19 pm

Someone have working demo? I receive 404 error Not Found on author site posted in first post.
vipholiday
Newbie
 
Posts: 4
Joined: 2008-01-22 08:02 pm
Location: Villasinparadise.co.uk

Re: Banner Rotator JS, hope useful

Postby Karen » 2008-03-21 12:13 pm

I don't really understand what I'm supposed to do :roll: :oops:

I tried following the instructions and change the links as needed but nothing has changed on my site.

Very confused!
Karen
Advanced Member
 
Posts: 132
Joined: 2007-09-09 04:59 pm

Re: Banner Rotator JS, hope useful

Postby swiftsaves » 2009-09-16 05:57 am

Karen wrote:I don't really understand what I'm supposed to do :roll: :oops:

I tried following the instructions and change the links as needed but nothing has changed on my site.

Very confused!



same here also did as mentioned .also nothing changed .
swiftsaves
Newbie
 
Posts: 6
Joined: 2009-08-24 12:04 pm

Re: Banner Rotator JS, hope useful

Postby Basti » 2009-09-16 06:07 am

This is meant to display banners in the adbreaks. Are adbreaks even activated for you? ( admin settings )
Basti
Advanced Member
 
Posts: 1619
Joined: 2004-06-20 06:17 pm
Location: Germany

Re: Banner Rotator JS, hope useful

Postby Gamecock » 2009-09-29 05:03 am

On 2 of my topsite lists, I run an actual banner exchange down at the bottom. To me, as the topsite list owner, this is MUCH more powerful than just a banner rotator. You may or may not agree...

Below is the site for Banner Plus program - which will also come up #1 in Google on a search for "banner exchange software" (non-exact). I have used this for many years and really like it!

http://www.gadnet.com/bplus/

Perhaps best for you, there is a FREEWARE version of this script available, which is simple, yet powerful. There has been cases where guys have sold enough banner ads to earn Pro FREE!

BannerPlus is available in three versions: v0.9 is free and fully functioning banner exchange software. BannerPlus Pro costs $75 and incorporates all of the features of the freeware version plus many additional features. BannerPlus Gold is the high-end product for busy banner exchanges. It has the same features as BannerPlus Pro but is written in C which reduces CPU and memory overhead to a minimum.


If you start with the Freeware version, you can VERY easily upgrade to Pro with NO problems!

I looked at the Free version, but soon realized I really wanted to use the Pro version to start my banner exchange(s). I have since upgraded to the Gold version, which runs 400% faster, but we are talking milliseconds here. The Free version still seems to load banners in instantly!

The guy who sells this script and runs this site is VERY helpful and knowledgeable as well. If you buy his program and have an issue (sometimes very minor glitch or you forgot something), he will even go into back end to check it out for you. I feel strongly he's trustworthy as well.

If you have any question(s), below is a link to the forum where you can ask the man himself!

http://www.gadnet.com/forums/

One thing I really like about this banner program is once you buy his script, you can use it as often as you'd like. Similar scripts want to charge more for each URL you might use it with.

Good Luck!
Gamecock
Advanced Member
 
Posts: 288
Joined: 2006-01-06 09:09 am
Location: Charleston, SC USA


Return to Mods

Who is online

Users browsing this forum: No registered users and 1 guest

cron