﻿
 //alert(a+b);
lastScrollY=0;
function heartBeat(){ 


var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop;
	
else
    {/*Netscape stuff*/}
    
//alert(diffY);

percent=.1*(diffY-lastScrollY); 
//alert(percent);
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}

suspendcode12="<DIV id=\"lovexin12\" style='right:22px;POSITION:absolute;top:"+(((window.screen.height))-(200*2))+"pt;z-index:100'>";
var recontent='<table align="left" style="margin-right:10px;width:90px" border="0" cellpadding=0 cellspacing=0 height="32">' + 
'<tr>' + 
'<td style="padding:2px 0;font-size:13px" height="1" align="left">'+
'<div id="qq1" style="float:left;width:168px; height:209px;">'+
'<div st></div>'+
 ' <ol >'+
'<li>客服热线:</li><li>400-814-0080</li><li id=\"bb\"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=631955254&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:631955254:43" alt="点击这里给我发消息" title="点击这里给我发消息"</li><li style=" width:100px; margin-left:10px; "><a>QQ：631955254</a></li>'+
'	 <li  style=\"text-align:right;width:130px\"><a  style=\"cursor:hand;\" onclick=\"closediv()\">关闭</a></li>'+
 ' </ol>'+
 ' </div>'+
'</td>' + 
'</tr>' + 
'</table>' + 
'<style>'+
'#qq1 ul{ list-style:none; float:left; margin-left:20px; margin-top:60px; width:90px;}'+
'#bb{ width:90px; line-height:25px; float:left; padding-left:0px;}'+
'#qq1 ol{ list-style:none; float:left; margin-left:10px; width:140px; margin-top:10px;}'+
'#qq1 ol li{ line-height:20px; font-size:13px;}'+
'</style>'+
'<map name="MapMapMap" onclick="far_close()" style="cursor:handle">' + 
'<area shape="rect" coords="71,8,102,30" href="#">' + 
'</map>';

document.write(suspendcode12); 
document.write(recontent); 
document.write("</div>"); 
window.setInterval("heartBeat()",1);
function far_close()
{
document.getElementById("lovexin12").innerHTML="";
}

function setfrme()
{
var tr=document.getElementById("lovexin12");
var twidth=tr.clientWidth;
var theight=tr.clientHeight;
var fr=document.getElementById("frame55la");
fr.width=twidth-1;
fr.height=theight-30;

}
setfrme();

function closediv()
{
	document.getElementById("lovexin12").style.display="none";
}
