﻿
<!-- Paste this code into an external JavaScript file named: banner.js.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Lee Underwood :: http://javascript.internet.com/ */

var bannerImg = new Array();
  // Enter the names of the images below
  bannerImg[0]="house-1.jpg";
  bannerImg[1]="house-2.jpg";
  bannerImg[2]="house-9.jpg";
  bannerImg[3]="house-14.jpg";
   bannerImg[4]="house-15.jpg";
  bannerImg[5]="house-16.jpg";
  bannerImg[6]="house-4.jpg";
  bannerImg[7]="house-7.jpg";
   bannerImg[8]="house-5.jpg";
  bannerImg[9]="house-12.jpg";
  bannerImg[10]="house-13.jpg";
  bannerImg[11]="house-10.jpg";
   bannerImg[12]="house-6.jpg";
  bannerImg[13]="house-11.jpg";
  bannerImg[14]="house-3.jpg";
  bannerImg[15]="house-8.jpg";

var newBanner = 0;
var totalBan = bannerImg.length;

function cycleBan() {
  newBanner++;
  if (newBanner == totalBan) {
    newBanner = 0;
  }
  document.banner.src=bannerImg[newBanner];
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleBan()", 3*1000);
}
window.onload=cycleBan;



<!-- Paste this code into the HEAD section of your HTML document.
     You may need to change the path of the file.  -->

<script type="text/javascript" src="images/banner.js.js"></script>



<!-- Paste this code into the BODY section of your HTML document  -->

<img src="image_jss.gif" name="banner">
<p><div align="center">
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</div><p>


