﻿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); 
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:200px;z-index:100' ";
var recontent='onmouseover="TalkLineTd.style.display=\'block\';menutd.style.display=\'none\';" onmouseout="TalkLineTd.style.display=\'none\';menutd.style.display=\'block\';">'+
'<table border="0" cellpadding="0" cellspacing="0">' +
'<tr>' +
'<td width="130" id="TalkLineTd" style="display: none;">' +
'<img src="images/top.gif" alt="" />' +
'<div style=" background:url(images/middlebg.gif); width:130px;color:#ffffff; text-align:center;font-size:13px;">' +
'<table border="0" cellspacing="0" cellpadding="0">' +
'<!--begin-->' + 

'<tr><td height="38" width="40"><img alt="" width="20" src="images/1.gif" /></td><td>' +
'<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=592841877 &amp;Menu=yes" title="QQ" target="blank" style="font-size:12px;color: #000000;text-decoration:none;font-weight:normal;">业务咨询1</a></td></tr>' +

'<tr><td height="38" width="40"><img alt="" width="20" src="images/1.gif" /></td><td>' +
'<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=744831169&amp;Menu=yes" title="QQ" target="blank" style="font-size:12px;color: #000000;text-decoration:none;font-weight:normal;">业务咨询2</a></td></tr>' +

'<tr><td height="38" width="40"><img alt="" width="20" src="images/1.gif" /></td><td>' +
'<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=20685378&amp;Menu=yes" title="QQ" target="blank" style="font-size:12px;color: #000000;text-decoration:none;font-weight:normal;">业务咨询3</a></td></tr>' +

'<tr><td height="38" width="40"><img alt="" width="20" src="images/1.gif" /></td><td>' +
'<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=670106323&amp;Menu=yes" title="QQ" target="blank" style="font-size:12px;color: #000000;text-decoration:none;font-weight:normal;">业务咨询4</a></td></tr>' +

'<tr><td height="38" width="40"><img alt="" width="20" src="images/1.gif" /></td><td>' +
'<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=1443652089&amp;Menu=yes" title="QQ" target="blank" style="font-size:12px;color: #000000;text-decoration:none;font-weight:normal;">业务咨询5</a></td></tr>' +

'<tr><td height="38" width="40"><img alt="" width="20" src="images/1.gif" /></td><td>' +
'<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=719642760&amp;Menu=yes" title="QQ" target="blank" style="font-size:12px;color: #000000;text-decoration:none;font-weight:normal;">客服服务1</a></td></tr>' +

'<tr><td height="38" width="40"><img alt="" width="20" src="images/5.gif" /></td><td>' +
'<a target="_blank" href="msnim:chat?contact=huaxiabaide@hotmail.com" title="MSN"  style="font-size:12px;color: #000000;text-decoration:none;font-weight:normal;">业务MNS</a></td></tr>' +

'<!--end-->' + 
'<tr><td height="38" align="right"><img style="margin:0;padding:0" src="images/ly.gif" height="30px"></td>' +
'<td align="left"><a href="message.aspx" target="_blank" style="text-decoration: none; font-size:12px;font-family:宋体;color:#6f6236;font-weight:700">留言版</a></td></tr>' +
'</table></div>' +
'<img src="images/bottom.gif" alt="" /></td>' +
'<td width="21" align="center" valign="top" id="menutd">' +
'<img style="margin-top: 7px;" src="images/kefu.gif" >' +
'</td></tr></table>';

document.write(suspendcode12); 
document.write(recontent); 
document.write("</div>"); 
window.setInterval("heartBeat()",1);

function far_close() {
    document.getElementById("lovexin12").innerHTML = "";
}
