// JavaScript Document
self.onError=null; 
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; //最后离左边距离的负值
lastScrollY =0; //最后离顶部的高度的负值

//----------------------start fun秒执行一次 
function heartBeat(id1,id2) { 
diffY = document.body.scrollTop;
diffX = document.body.scrollLeft; 

if(diffY != lastScrollY) { 
percent = .1 * (diffY - lastScrollY); 
if(percent > 0) percent = Math.ceil(percent); 
else percent = Math.floor(percent); 
id1.style.pixelTop += percent;
id2.style.pixelTop += percent; 
lastScrollY = lastScrollY + percent; 
} 

if(diffX != lastScrollX) { 
percent = .1 * (diffX - lastScrollX); 
if(percent > 0) percent = Math.ceil(percent); 
else percent = Math.floor(percent); 
id1.style.pixelTop += percent;
id2.style.pixelTop += percent;    
lastScrollX = lastScrollX + percent; 
} 
} 
//-----------------------end fun
scr=screen.width
left_1=(scr>800)?10:145
right_1=(scr>800)?880:580

//左侧图片
document.write("<DIV id=f1 style='left: "+left_1+"px; top: 215px; POSITION: absolute;'><a href=http://www.chachewang.com.cn/Web/ML.htm target=_blank><img src=http://www.chachewang.com.cn/new/shu.gif border=0 width=120 height=150></a></div>")

//右侧图片
document.write("<DIV id=f2 style='top: 215px; right: 0px;POSITION: absolute;'><a href=http://www.chachewang.com.cn/Web/ML.htm target=_blank><img src=http://www.chachewang.com.cn/new/shu.gif border=0 width=120 height=150></a></div>")

action = window.setInterval("heartBeat(f1,f2)",50); 
