var slideShowSpeed = 4000; var showspeed2 = 9000; var crossFadeDuration = 3; var image_Pic = new Array(); var image_link = new Array; var small_img = new Array; image_Pic[0] = 'http://www.zhubajie.com/Uploadpics/images/2008/09/05/middlesci72269.gif'; image_link[0] = 'http://www.zhubajie.com/task/iv/58353'; small_img[0] = '/img/ximg/xl/c1_1.jpg'; image_Pic[1] = 'http://www.zhubajie.com/Uploadpics/images/2008/09/04/middleeuj75z48.gif'; image_link[1] = 'http://www.zhubajie.com/task/iv/58281'; small_img[1] = '/img/ximg/xl/c2_1.jpg'; image_Pic[2] = 'http://www.zhubajie.com/Uploadpics/images/2008/09/02/middlebd6ae9s0.gif'; image_link[2] = 'http://www.zhubajie.com/task/iv/58218'; small_img[2] = '/img/ximg/xl/c3_1.jpg'; image_Pic[3] = 'http://www.zhubajie.com/Uploadpics/images/2008/09/01/middlev8ytrh3z.gif'; image_link[3] = 'http://www.zhubajie.com/task/iv/58145'; small_img[3] = '/img/ximg/xl/c4_1.jpg'; image_Pic[4] = 'http://www.zhubajie.com/Uploadpics/images/2008/08/27/middle052606va.gif'; image_link[4] = 'http://www.zhubajie.com/task/index.php?com=iv&tid=57297'; small_img[4] = '/img/ximg/xl/c5_1.jpg'; // do not edit anything below this line var t; var j = 0; var cliImgSrc = ''; var p = image_Pic.length; var preLoad = new Array(); var preLoadlink = new Array(); var preLoadimg = new Array(); for (i = 0; i < p; i++) { preLoad[i] = new Image(); preLoadlink[i] = new Image(); preLoadimg[i] = new Image(); preLoad[i].src = image_Pic[i]; preLoadlink[i] = image_link[i]; preLoadimg[i].src = small_img[i]; } function tupian(cvv) { for (var z = 0; z < p; z++) { //alert('num_img'+z) document.getElementById('num_img'+z).src='img/home/slide_num0'+(z+1)+'.gif'; document.getElementById('num_img'+z).style.background="url(/img/home/slide_num_bg.gif) left"; } //document.getElementById('num_img'+cvv).src=small_img[cvv]; document.getElementById('num_img'+cvv).style.background="url(/img/home/slide_num_bg.gif) right"; } function click_simg(no){ 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(); } var pImg = document.getElementById('SlideShow'); var pLink = document.getElementById('imglink'); pLink.href=preLoadlink[no]; pImg.src=preLoad[no].src; tupian(no) if (document.all) { document.images.SlideShow.filters.blendTrans.Play(); } j=no+1 if (j > (p - 1)) j = 0; clearTimeout(t); t = setTimeout('runSlideShow()', slideShowSpeed); } 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; document.getElementById('imglink').href=preLoadlink[j]; tupian(j) if (document.all) { document.images.SlideShow.filters.blendTrans.Play(); } j = j + 1; if (j > (p - 1)) j = 0; if(j==1) t = setTimeout('runSlideShow()', showspeed2); else t = setTimeout('runSlideShow()', slideShowSpeed); } document.write( ""); document.write("

"); for (i = 0; i < p; i++) { document.write( ""+(i+1)+""); } document.write("

"); runSlideShow();