A Guide for creating a snazzy Flash slide show manually.
As the world goes digital, creating the digital web Flash photo album would be absolutely a good choice to demonstrate the photos to our friends and family. You can make this snazzy Flash Slide Show manually or by related software.
First of all, create a new file in Dreamweaver editor, then cut and paste the following code in HTML code window:
<!-- Begin NewImg = new Array ( "images/1.jpg", "images/2.jpg", "images/3.jpg" );
var p = NewImg.length; var preLoad = new Array(); for (i = 0; i < p; i++) { preLoad[i] = new Image(); preLoad[i].src = NewImg[i]; }
var ImgNum = 0; var ImgLength = NewImg.length - 1;
//Time delay between Slides in milliseconds var delay = 3000; var t; var lock = false; var run;
function chgImg(direction) { 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(); }
if (document.all) { document.images.SlideShow.filters.blendTrans.Play();
}
if (document.images) { ImgNum = ImgNum + direction; if (ImgNum > ImgLength) { ImgNum = 0;
}
if (ImgNum < 0) { ImgNum = ImgLength;
}
document.SlideShow.src = NewImg[ImgNum]; }
}
function auto() { if (lock == true) { lock = false; window.clearInterval(run);
}
else if (lock == false) { lock = true; run = setInterval("chgImg(1)", delay); }