<script language="javascript" &RT;// =======================================// set the following variables// =======================================// Set slideShowSpeed (milliseconds)var slideShowSpeed = 1000// Duration of crossfade (seconds)var crossFadeDuration = .0001// Specify the image filesvar Pic = new Array() // don't touch this// to add more images, just continue// the pattern, adding to the array belowPic[0] = "fadeimage/1.jpg";Pic[1] = "fadeimage/2.bmp";Pic[2] = "fadeimage/3.jpg";Pic[3] = "fadeimage/4.gif";Pic[4] = "fadeimage/5.jgp";// =======================================// do not edit anything below this line// =======================================var tvar j = 0var p = Pic.lengthvar preLoad = new Array()for (i = 0; i < p; i++){ preLoad[i] = new Image() preLoad[i].src = Pic[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 &RT; (p-1)) j=0 t = setTimeout('runSlideShow()', slideShowSpeed)}</script&RT;
<img src="fadeimage/1.jpg" width="100" height="100" name="SlideShow" runat="server" />