/*------------------------------------------------------------------------------ WYHA rotating image js Script can be customized to either rotate a list of divs (use when there are few images) or replace contents of a single div form an array of images and target This will be expanded as the season progresses. These functions are not supported by League Athletics. Any changes to the under lying sturture by LA will require these functions to be updated. use at your own maintenance risk. -------------------------------------------------------------------------------*/ // sample arrays // var ImageArr1 = new Array("http://files.leagueathletics.com/Images/Pictures/2065/65625.jpg","http://files.leagueathletics.com/Images/Pictures/2065/65560.jpg"); // var TargetArr1 = new Array("http://www.priceline.com","http://bostonbruins.com"); function wyha_buildDynamicImageLink(image, target){ var sImage = "" var sReturn = "" + sImage + " "; return sReturn; } WYHA_RotateImageCt = 2; function WYHA_RotateDivImages(selection) { if(selection>WYHA_RotateImageCt){ selection=1; } for (var x = 1; x<=WYHA_RotateImageCt ;x++) { sDivId = String("wyharotator" +x); sDisplay = (selection == x) ? 'block' : 'none'; document.getElementById(sDivId).style.display=sDisplay; } window.setTimeout("WYHA_RotateDivImages("+(selection+1)+")",7000); }