// ######################################################################################## // BANNER AD ROTATION // The following java script code rotates the banner ads on this page. // ######################################################################################## /* This code will work just fine with or without frames. However, if you are in frames and wish to replicate the TARGET="_top" call to remove frames, change the location.href call below to: parent.location.href=durl[sctr]; */ function doIt(){ halt=1; location.href=durl[sctr]; } function dispIt(){ parent.window.status=durl[sctr]; } function dispItNo(){ parent.window.status=''; } /* This script is set to rotate every 5 seconds (5000 = 5 seconds, so 30000 would equal 30, etc). You should change the number in the setTimeout() call below for the number of seconds you wish. */ function rotateIt(){ if (halt!=1){ sctr++; if (sctr>number_of_sponsors-1){ sctr=0; } document.sponsor.src=isn[sctr].src; setTimeout("rotateIt()",3000); } } /* If you load fewer or more than 5 sponsors into your rotator, change the "number_of_sponsors" variable to the actual number of sponsor .gifs you plan to load. */ number_of_sponsors=7; var sctr=0; var halt=0; var isn=new Array(); for (i=0; i < number_of_sponsors; i++){ isn[i]=new Image(); } /* The sponsor .gif names are loaded into the isn[x] sponsor images array. You may load any number of sponsor images (.gif or .jpg or both) into this array. They must all be the same size, however. Substitute your own .gif filenames for the ones shown here. Note that the first .gif must appear in the isn[0] array element. */ isn[0].src="assets/images/header_11.jpg"; isn[1].src="assets/images/header_13.jpg"; isn[2].src="assets/images/header_14.jpg"; isn[3].src="assets/images/header_16.jpg"; isn[4].src="assets/images/header_17.jpg"; isn[5].src="assets/images/header_18.jpg"; isn[6].src="assets/images/header_19.jpg"; /* Finally, replace the URL's below with those of your sponsors IN THE SAME ORDER. */ var durl=new Array(); durl[0]="http://www.scottcookknives.com/assets/images/Scott_Cook_Lochsa_24.jpg"; durl[1]="http://www.scottcookknives.com/assets/images/Scott_Cook_Knives_Non_Typical_6.22.18_f.jpg"; durl[2]="http://www.scottcookknives.com/assets/images/Scott_Cook_Lochsa_04.jpg"; durl[3]="http://www.scottcookknives.com/assets/images/Scott_Cook_Lochsa_Non-Typical.2.01.17.jpg"; durl[4]="http://www.scottcookknives.com/assets/images/Gallery05.jpg"; durl[5]="http://www.scottcookknives.com/assets/images/Gallery25.jpg"; durl[6]="http://www.scottcookknives.com/assets/images/Gallery27.jpg";