// 属性设置 
var E_strIFaderTransType = 'reveal'; // 'reveal' | 'blend' 
var Filter_number = 23; // 滤镜种数 
var change_time = 3.000; // 滤镜转换过程为3.0秒延迟 
var wait_time = 5000; // 两种滤镜之间为5秒延迟 

var obj_Timer; 
var count_temp = 0; //记录当前是第几幅图片 
var Img_arry = new Array(); //图片数组 
var E_ie4 = document.all?true:false; 
var E_nn4 = document.layers?true:false; 

function Filt_set() //设置滤镜 
{ 
   if(!E_ie4 && !E_nn4) return;
   if(E_ie4) { 
     var theImg = document.all['idImgFading']; 
     if(theImg == null) return; 
     with(document.all['idImgFading']) { 
       style.filter = (E_strIFaderTransType == 'reveal')?'revealTrans':'blendTrans'; 
       style.filter.duration = change_time; 
       style.filter.transition = Filter_number; 
     } 
   } 
   use_Filter();
   obj_Timer = window.setInterval('use_Filter()',wait_time); 
} 

function use_Filter() //滤镜的启动 
{ 
   if(E_ie4) { 
     with(document.all['idImgFading']) { 
       if(E_strIFaderTransType == 'reveal') { 
         filters(0).transition = Filter_number; 
       } 
       if(count_temp == (Img_arry.length - 1)) { 
         count_temp = -1; 
       } 
       count_temp++; 
       title = Img_arry[count_temp].sAlt; 
       parentElement.href = Img_arry[count_temp].command;
    document.all['idImgLink'].innerText=title;
    document.all['idImgLink'].href= Img_arry[count_temp].command;
       filters(0).apply(); 
       src = Img_arry[count_temp].sImgUrl; 
       filters(0).play();
     } 
   } 
   else if(E_nn4) { 
     if(count_temp == (Img_arry.length - 1)) { 
       count_temp = -1; 
     } 
     count_temp++; 
     document.images['idImgFading'].src = Img_arry[count_temp].sImgUrl; 
   } 
} 

function obj_ClearTime() { 
   window.clearInterval(obj_Timer); 
} 
window.onunload = obj_ClearTime;//取消计时器，释放系统资源 

function Img_obj(sImgUrl,command,sAlt,sTarget) 
{ 
   this.sImgUrl = (sImgUrl == null)?'':sImgUrl; 
   this.command = (command == null || command == '')?'/':command; 
   this.sAlt = (sAlt == null)?'':sAlt; 
   this.sTarget = (sTarget == null || sTarget == '')?'_self':sTarget; 
} 
<!-- 
// 定义图像来源 
Img_arry[0] = new Img_obj('images/p07.gif','product_display.asp?prono=33&pageno=1','高精度丝杆LCD专用切割机(XGY-S750)','_blank');
Img_arry[0] = new Img_obj('images/p03.gif','product_display.asp?prono=37&pageno=1','半导体激光打标机(XGY-DP50侧泵分体机)','_blank');
Img_arry[1] = new Img_obj('images/p04.gif','product_display.asp?prono=4&pageno=1','半导体激光打标机(XGY-DP50侧泵一体机)','_blank');
Img_arry[2] = new Img_obj('images/p05.gif','product_display.asp?prono=15&pageno=1','YAG高速激光打标机(XGY-YAG50)','_blank');
Img_arry[3] = new Img_obj('images/p06.gif','product_display.asp?prono=38&pageno=1','CO2高速激光打标机(XGY-C100)','_blank');
Img_arry[4] = new Img_obj('images/p01.gif','product_display.asp?prono=6&pageno=1','XGY-1800双头高速激光雕刻机、切割机','_blank'); 
Img_arry[5] = new Img_obj('images/p02.gif','product_display.asp?prono=2&pageno=1','XGY-1200激光雕刻机、切割机','_blank');  
//--> 
