BannerRotator script

Installation instrustions

To setup the rotator download file ( right click with mouse on this link and choose "Save As" ). Upload bannerrotator.js file to your home directory. Place anywhere on your page, where you want banner to appear by putting the following code in your HTML source file:
<script language="javascript" src="bannerrotator.js">
<script>

/***************************************************
 * Script by Virtual_Max (http://come.to/vmax)
 * Copyright 2001, Virtual_Max (Maxim V. Kollegov)
 * Free for noncommercial use until this statement 
 * presents unchanged in all copies and derivatives.
 ***************************************************/

 // idle state time in milliseconds 

 var idletime = 2000;

 // target frame name  or one of predefined in javascript values
 // _self, _top, _blank or _parent 

 var bannerTarget="_self";

 // add banners to rotation
 new Banner('banner1.gif','url1.html');
 new Banner('banner2.gif','url2.html',3000);
 new Banner('banner3.gif','url3.html');

 // you can add more here as is needed

 setupBanner(); 

</script>
The best way to do this is to open your HTML source file in any text editor, like Notepad.exe, find a place in the document where it must appear and cut'n'paste above code. Note, script can be used only once on the page. 2 copies of the same script will cause variables names conflicts and wouldn't work. You may configure as much imageURL / linkURL pairs as you need. The only restriction is that all images must have the same size. The third parameter is the banner stay time in milliseconds, it overrides the default value defined by the ideletime variable. So if it's omitted the default will be used, if this third parameter exists than it defines the stay time for the current image.

Terms of use

This script is free for noncommercial use only until copyright statement remains unchanged in comments of javascript code.
Commercial use of this script including but not limited to rotating of any kind of advertise banners which pays per banner exposed, per click or per referred customer or just for placing advertise banner on your site, requires my special permission
Redistributing or Mirroring of this script and it's documentation on any public domain or other collections requires my special permission. Please contact Virtual_Max to obtain permission.


©Virtual_Max 2001
Version date: Jan, 31, 2001