1: <script type="text/javascript">
2: // =======================================
3: // set the following variables
4: // =======================================
5: // Set slideShowSpeed (milliseconds)
6: var slideShowSpeed = 10000; // 10 seconds per slide
7: // Duration of crossfade (seconds)
8: var crossFadeDuration = 3;
9: // Specify the image files
10: var Pic = new Array(
11: 'Images/vidshots/vidbar1.gif',
12: 'Images/vidshots/vidbar2.gif',
13: 'Images/vidshots/vidbar3.gif',
14: 'Images/vidshots/vidbar4.gif'
15: );
16: // to add more images, just continue
17: // the pattern
18: // =======================================
19: // do not edit anything below this line
20: // =======================================
21: var t;
22: var p = Pic.length;
23: var preLoad = new Array();
24: for (i = 0; i < p; i++) {
25: preLoad[i] = new Image();
26: preLoad[i].src = Pic[i];
27: }
28: var j = 0;
29: function runSlideShow() {
30: if (document.all) {
31: document.images.SlideShow.style.filter = "blendTrans(duration=2)";
32: document.images.SlideShow.style.filter = "blendTrans(duration=crossFadeDuration)";
33: document.images.SlideShow.filters.blendTrans.Apply();
34: }
35: if (j > (p - 1)) j = 0;
36: document.images.SlideShow.src = preLoad[j].src;
37: if (document.all) {
38: document.images.SlideShow.filters.blendTrans.Play();
39: }
40: j = j + 1;
41: if (j > (p - 1)) j = 0;
42: t = setTimeout('runSlideShow()', slideShowSpeed);
43: }
44: </script>