suspendcode="<DIV id='lovexin1' style='Z-INDEX: 10; LEFT: 0px; POSITION: absolute; TOP: 280px;color:red;'><table cellSpacing=0 cellPadding=0 align=center border=0><tr><td><img src='js/qq_kefu_up.gif'></td></tr><tr><td style='background:url(js/qq_kefu_middle.jpg);font-size:12px;padding-left:5px;'><A href='tencent://message/?uin=138010271&Menu=yes' style='color:red;'><IMG alt=在线qq src='http://wpa.qq.com/pa?p=1:138010271:4'border=0>138010271</A></td></tr><tr><td><img src='js/qq_kefu_down.gif'></td></tr></table></DIV>"
document.write(suspendcode);



//flash格式调用方法
//<EMBED src='flash.swf' quality=high  WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=ad wmode=opaque></EMBED>

lastScrollY=0;
function heartBeat(){
	diffY=document.body.scrollTop-280;
	percent=0.3*(diffY-lastScrollY);
	if(percent>0)percent=Math.ceil(percent);
	else percent=Math.floor(percent);
	document.getElementById("lovexin1").style.pixelTop+=percent;
	document.getElementById("lovexin2").style.pixelTop+=percent;
	lastScrollY=lastScrollY+percent;
}
function hide(){
	lovexin1.style.visibility="hidden"; 
	lovexin2.style.visibility="hidden";
}
//window.setInterval("heartBeat()",1);

function check (){
	if(parseInt(document.body.scrollTop) >= 280) {
		heartBeat();
	}
	else{
		document.getElementById("lovexin1").style.pixelTop = 280;
		document.getElementById("lovexin2").style.pixelTop = 280;
		lastScrollY=0;
	}
}
window.setInterval(check,100);



