
// 设置轮番显示速度 Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// 匀滑转换时间 Duration of crossfade (seconds)
var crossFadeDuration = 3;
// 指定图像文件 Specify the image files
var Pic = new Array();
// to add more images, just continue
Pic[0] = 'http://gcms.pingxiang.gov.cn/html/xd/images/index1_04.jpg';
Pic[1] = 'http://gcms.pingxiang.gov.cn/html/xd/images/index2_04.jpg';
Pic[2] = 'http://gcms.pingxiang.gov.cn/html/xd/images/index3_04.jpg';
Pic[3] = 'http://gcms.pingxiang.gov.cn/html/xd/images/index4_04.jpg';
Pic[4] = 'http://gcms.pingxiang.gov.cn/html/xd/images/index_04.jpg';
// do not edit anything below this line
var j = 0;
var preLoad = new Array();
for (i = 0; i < Pic.length; i++) {
 preLoad[i] = new Image();
 preLoad[i].src = Pic[i];
}
function runSlideShow() {
 var SlideShow =document.getElementById("SlideShow");
 SlideShow.style.filter="blendTrans(duration=2)";
 SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
 
 if(SlideShow.filters){SlideShow.filters.blendTrans.Apply();}
 
 SlideShow.src = preLoad[j].src;
 
 if(SlideShow.filters){SlideShow.filters.blendTrans.Play();}
 
 j = j + 1;
 if (j > (Pic.length - 1)) j = 0;
 setTimeout('runSlideShow()', slideShowSpeed);
}

