Version: 1.3
Revision: 34 Build 12
JavaScript – Advance Ads Rotator v1.3
Introduction: for the past hours, I was revising my ‘JavaScript Ads Rotator’. But, strangely enough, I was able to compressed and remove half of the junk from my previous script. Also, this script can resize all of your images / banners automatically.
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
// Revision: 36 Build 21
// Copyrighted by Lair360
// Url: lair360.co.uk/blog/
// *******************************
var width = "125"; // Width of Advertisements
var height = "125"; // Height of Advertisements
var target = "_blank"; // Target window to open the ads
// *******************************
var image = new Array()
// Write down the source urls of ad images
image[0]='125x125.gif';
image[1]='125x125.gif';
image[2]='125x125.gif';
image[3]='125x125.gif';
image[4]='125x125.gif';
var links = new Array()
//Write link to ads respectively
links[0]='link0';
links[1]='link1';
links[2]='link2';
links[3]='link3';
links[4]='link4';
var text = new Array()
//Write text description to ads respectively
text[0]='text0';
text[1]='text1';
text[2]='text2';
text[3]='text3';
text[4]='text4';
// *******************************
var s = Math.floor(Math.random()*image.length & text.length);
document.write('<a href="'+links[s]+'" target="'+target+'"><img src="'+image[s]+'" width="'+width+'" height="'+height+'" alt="'+text[s]+'" border="0"></a>');
—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







