Banner Services
Animated Banner Resources
banner, ads & etc...
banner
exchanges
ranking
free java script in
advertising
Advertising recent
additions
promotional products:
directory guide
flash basis
"Online Smileys Gallery"
Smilleys collection
Banner Advertising:
Selection of scripts for banners, scrolling text, marquees creation and
other ways of handling text.
Ad Rotator:
Rather imperfect for spider to go by since you have to have freames
and this is usually hard for the search engines. This script will
rotate a set of banner ads on a Web page, you have to make the images.
(frameset-based).
Good for following browsers: IE3, IE4, IE5, NS3, NS4+
Download Demo More Details
Download Demo
More Details Author Web Site
If you run into trouble with this script please contact the author.
To install this script, follow these simple steps:
1. Cut and paste this into your main frameset document, and save
as "index.html":
2. Cut and paste this a document saved as "ads1.html":
<HTML>
<HEAD>
<TITLE>Banner Ads</TITLE>
<META HTTP-EQUIV=REFRESH CONTENT="10; URL=ads1.html">
<SCRIPT LANGUAGE = "JavaScript">
<!-- Hide the script from non-Javascript browsers
/*** Feel free to use this script, just leave these comment lines. ***/
/*** Goetz's Banner Script copyright 1998 Lawrence Goetz ***/
/*** goetz@lawrencegoetz.com http://www.lawrencegoetz.com/ ***/
// Indicate how many banner ads there are.
var amount=3;
// Array Function.
function makeArray(len) {
for (var i = 0; i < len; i++)
this[i] = null;
this.length = len;
}
// Array Function for target in frames.
// You can adjust the default here if you like.
// The default is _self.
function makeTargetArray(len) {
for (var i = 0; i < len; i++)
this[i] = "_self";
this.length = len;
}
// Generate's the arrays.
image = new makeArray(amount);
link = new makeArray(amount);
target = new makeTargetArray(amount);
info = new makeArray(amount);
// Place your banner information here. Start at index number 0.
image[0]="ltoys.jpg";
link[0]="link.html";
info[0]="Larrys Toys";
target[0]="website";
image[1]="lsongs.jpg";
link[1]="link.html";
info[1]="Larrys Songs";
target[1]="website";
image[2]="lmmouse.jpg";
link[2]="link.html";
info[2]="Larrys Master The Mouse";
target[2]="website";
// Randomly pick a banner to display.
function rand(n) {
seed = (0x015a4e35 * seed) % 0x7fffffff;
return (seed >> 16) % n;
}
var now = new Date();
var seed = now.getTime() % 0xffffffff;
var position=rand(amount);
// -- End Hiding Here -->
</SCRIPT>
</HEAD>
<BODY>
<center>
<SCRIPT LANGUAGE = "JavaScript">
<!-- Hide the script from non-Javascript browsers
document.write("<A HREF=\""+link[position]+"\" target=\""+target[position]+"\" onMouseOver= \"window.status ='"+info[position]+"'; return true;\" onMouseOut= \"window.status =''; return true;\">");
document.write("<IMG SRC=\""+image[position]+"\" ALT=\""+info[position]+"\"></A>");
// -- End Hiding Here -->
</SCRIPT>
</center>
</BODY>
</html>
3. Cut and paste this a document saved as "ads2.html":
<HTML>
<HEAD>
<TITLE>ScriptLibrary!</TITLE>
</HEAD>
<BODY>
<FONT FACE="ARIAL,HELVETICA" SIZE="-1">
This is just a content page of the frameset.
</FONT>
</BODY>
</HTML>