JavaScript – Advance Ads Rotator v1.3

Version: 1.3
Revision: 34 Build 12

JavaScript – Advance Ads Rotator v1.3

Introduction:
this script was designed for those who would like to keep everything simple and easy. However, if you want to use this script, you must understand how to use this source. But, for webmaster, please use this script and modify them to your hearth’s content. Also, please don’t remove my comments (especially my copyright and rules).

Thank you for your support and consideration!

Lair360 ~ Admin

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, just add these ‘string’ into your ‘header’.

—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, you must alter the above JScript and replace everything with your own images / links.

5.] Finish!

Copyrighted By Lair360

Comments are closed.