Version: 1.32 Hybrid
Revision: 34 Build 12
JavaScript – Advance Ads Rotator v1.32 Hybrid
Introduction: on the 6th of June, my Gmail inbox was dominated by a bunch of users!
They asked me, if I can create another “JavaScript Ads Rotator” that gives individual users’ more control over their banners. Well… this is a pretty good excuse to get my brain working!
If you want to use this new script, please feel free to copy and use it on your website, blogs or forum. However, please don’t remove any of my comments, especially my copyright regulations and rules!
Thank for your support!
Lair360 ~ Administrator
1.] Download notepad++ from the original author or from another source.
——————————-
http://sourceforge.net/projects/notepad-plus/
http://filehippo.com/download_notepad/
——————————-
2.] Copy this ‘JavaScript’ source code and save it as “ad-rotator.js”.
File: ad-rotator.js
—Copy Source Code—
// Version: 1.13 Hybrid
// Revision: 36 Build 21
// Copyrighted by Lair360
// Url: lair360.co.uk/blog/
// *******************************
// If you're using more than three ADS, please change
// the default number.
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
// *******************************
// Replace your own images, banners and urls.
if (ad==1) {
url="http://url-1.com";
alt="url-1.com";
banner="1.gif";
width="125";
height="125";
}
if (ad==2) {
url="http://url-2.com";
alt="url-2.com";
banner="2.gif";
width="125";
height="125";
}
if (ad==3) {
url="http://url-3.com";
alt="url-3.com";
banner="3.gif";
width="125";
height="125";
}
// Modifications Ends Here.
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" ')
document.write('width=\"' + width + '\" height=\"' + height + '\" ');
document.write('alt=\"' + alt + '\" border=0><br></a>');
document.write('</center>');
—End Source Code—
3.] Finally, you’ll need to add this ‘html – string’ into your webpage.
—Copy Source Code—
<script type="text/javascript" language="Javascript" src="ad-rotator.js"></script>
—End Source Code—
4.] Save your webpage and exit. After that, just alter the above JScript with your own images and links.
5.] Finish!
Copyrighted by Lair360







