<!--// This hides the script from ancient browsers

/* Banner Up! - Improve your batting average with real-time 
banner rotation.

Copyright 1999 By Heidi Allen

Knowledge Hound - The How-To Hunter
Learn how to do almost anything...for free!
Please visit us at http://www.knowledgehound.com

License for use of this script is granted only if this entire copyright notice is included with it. We do not provide support for this script. It's provided solely as a friendly gesture.

Banner Up! - Part One

This is an external JavaScript file. You'll have to tell your webpage where to find it. To do so, place the following line inside the page's <HEAD> section. Make sure the path (after SRC=") points to where you saved this file:

<SCRIPT SRC="scripts/bannerup.js"></SCRIPT>

If you want to rotate images without links attached to them, 
use Part One only.

Banner Up can display rotating images in more than one place on a page. However, the same images will be displayed in both locations simultaneously. The one exception to this is the place-holding image that people see when the page first loads. These can be different, provided that they still use the same dummy.htm link explained later in this document.

If you need two or more completely different sets of rotating images, you may want to try using iFrames. You can learn how here:

http://knowledgehound.com/topics/html.htm#iframes

All of the images that you use for Banner Up! must be the same size, although that size can be anything that you choose. Static images are recommended over animated ones.

Don't touch the code below.  */

var image = "";
var banners = 0;

/* The next bit of code specifies how many images will be rotating, in this case 3. It also specifies how many instances of your rotating images will appear on the page, in this case, 2. */

function cycle() {
  if (++banners > 3) banners=1;
    loadbanners();
    document.banner1.src = image;

/* Choose how fast you want your images to cycle below. 1000 equals one second. Take into account different modem speeds. Larger images will require more time, especially with slower modems. */

    window.setTimeout('cycle();',5000);
  }

/* Replace our images listed below with your own. 

ATTENTION AFFILIATE/ASSOCIATE PROGRAM MEMBERS! You will have to make copies of ad graphics (banners, buttons, etc.) and use paths to your own directory rather than pulling them from a merchant's or network's server. In my tests, page impressions and click-throughs could still be tracked by a third party. Instructions to make this work are further down on this page. However, please make sure that this is acceptable to your merchant or ad network, and TEST things beforehand to ensure that you won't lose any revenue. */

  
function loadbanners() {
   if (banners==1)
      {
      image="images/Adverts/esp.jpg";

      }
   if (banners==2)
      {
      image="images/Adverts/rotationuk.jpg";
 
      }
   if (banners==3)
      {
      image="images/Adverts/scuffed.jpg";

      }
}


/* Banner Up! - Part Two

List your links below. 

The default link variable ("var link") is where you want people to go when they click on the place-holding image (the image specified in your HTML code). "banners==1" should be followed by the link you want them to go to when they click on the first image to replace the place-holding image, and so on.

AFFILIATE/ASSOCIATE PROGRAM MEMBERS: For links that contain a click tracker URL (next to HREF=) and an impression tracker URL (next to SRC=), use the click tracker URL only at this point in the script. Page impressions will still be tracked if you put the impression tracker URL in the SRC= attribute spot for one of the place-holding banners specified in the HTML of the page. You won't need to copy a graphic for that ad to your own directory, since the image will be pulled from the appropriate remote server. The impression will be counted at the same time. */

var link = "#"

function urlswitch() {
if (banners==1)
{
link = "http://www.extrasafetyproducts.co.uk/"; 
}
if (banners==2)
{
link = "http://www.rotationuk.com/";
}
if (banners==3)
{
link = "http://www.scuffedalloys.com/";
}
return link;
}

/* Include the following in the body tag of your HTML document. The number to the right of "cycle()" is how long the place-holding images will display.

onLoad="window.setTimeout('cycle();',6000);(loadbanners());(urlswitch());

Here's an example:

<body onLoad="window.setTimeout('cycle();',7000);(loadbanners());(urlswitch());>

Place the code below where you want the first set of images to display on your webpage. Leave the "dummy.htm" unchanged. Also, don't use "alt" tags with the images you want to rotate unless you don't mind the same text being applied to all of them. Change the image path (after "src=") to the image you want to use.

<CENTER><a href="/dummy.htm" onClick="this.href=urlswitch()"><IMG width="468" height="60" border=0 src="/images/KHbann10.gif" name="banner1"></a></CENTER>

The code below is for the second set of rotating images on your page, should you want this option. Again, change the path to the image you want to display.

<CENTER><a href="/dummy.htm" onClick="this.href=urlswitch()"><IMG width="468" height="60" border=0 src="/images/KHbann10.gif" name="banner2"></a></CENTER>

If you're still not sure how this works, take a look at the Banner Up webpage at http://www.khound.com/bannerup.htm and select "View Source" from your browser's menu.

That's all there is to it! I hope you enjoy using Banner Up! */

//  Ends hiding from ancient browsers -->