var obj,first,total,cn,delay=3000 
function window.onload(){ 
    obj=document.getElementById("turn")  
    first=1                          
    total=6                        
    cn=1                             
    setTimeout("change()",delay/2)  
//delay/2毫秒后执行change()函数 
} 
function change(){ 
    url="images/t"                 
    suffix=".gif"                  
    if(cn<total)               
       url+=(cn+=1)+suffix         

    else if(cn==total)  
 
       url+=(cn=first)+suffix  
    with(obj.filters.revealTrans){ 
       apply()              
       transition=23 
       obj.src=url                    
       play()                          
    } 
    setTimeout("change()",delay) 
} 

