var arImages = new Array(7); arImages[0] = "images/rotating/hm_index_gallery_05.jpg"; arImages[1] = "images/rotating/hm_index_gallery_06.jpg"; arImages[2] = "images/rotating/hm_index_gallery_02.jpg"; arImages[3] = "images/rotating/hm_index_gallery_04.jpg"; arImages[4] = "images/rotating/hm_index_gallery_03.jpg"; arImages[5] = "images/rotating/hm_index_gallery_07.jpg"; arImages[6] = "images/rotating/hm_index_gallery_01.jpg"; // Set slideShowSpeed (milliseconds) var slideShowSpeed = 5000; // Duration of crossfade (seconds) var crossFadeDuration = 3; var j=0, t=0; var nNumImages = arImages.length; var preLoad = new Array(); for (i = 0; i < nNumImages; i++) { preLoad[i] = new Image(); preLoad[i].src = arImages[i]; } function runSlideShow() { if (document.all) { document.images.SlideShow.style.filter="blendTrans(duration=2)"; document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"; document.images.SlideShow.filters.blendTrans.Apply(); } document.images.SlideShow.src = preLoad[j].src; if (document.all) { document.images.SlideShow.filters.blendTrans.Play(); } j = j + 1; if (j > (nNumImages - 1)) j = 0; t = setTimeout('runSlideShow()', slideShowSpeed); }