欢迎访问,中国低碳网!
var roll_image = new Array; var image_link = new Array; var small_img = new Array; var cliImg = ''; var cliImgSrc = ''; var imgNo = Math.round(Math.random() * 1); var interval = 3000; var setTime = ''; function click_simg(ci, no){ var pImg = document.all.bigimg; var pLink = document.all.imglink; if(cliImg == '') { cliImg = ci; cliImgSrc = ci.src; ci.src = small_img[no]; imgNo=no; pImg.src =roll_image[no]; pLink.href = image_link[no]; } else if(cliImg != ci) { cliImg.src = cliImgSrc; cliImg = ci; cliImgSrc = ci.src; ci.src = small_img[no]; imgNo=no; pImg.src =roll_image[no]; pLink.href = image_link[no]; } clearTimeout(setTime); setTime=setTimeout("rotate()",interval); } function rotate(){ imgNo = (imgNo >= 4) ? 0 : imgNo+1; var ci = eval('document.all.num_img'+imgNo); document.all.bigimg.filters.blendTrans.apply(); document.all.imglink.href=image_link[imgNo]; document.all.bigimg.src=roll_image[imgNo]; document.all.bigimg.filters.blendTrans.play(); if(cliImg == '') { cliImg = ci; cliImgSrc = ci.src; ci.src = small_img[imgNo]; } else if(cliImg != ci) { cliImg.src = cliImgSrc; cliImg = ci; cliImgSrc = ci.src; ci.src = small_img[imgNo]; } setTime=setTimeout("rotate()",interval); } //-->
rotate();
专家论坛
  • 热点图集