﻿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";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById

("lovexin12").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
//注意：以下添加了2个qq，将442770423和81148919改成你想要的QQ号码即可。可无限增加QQ号码。 
suspendcode12="<DIV id=\"lovexin12\" style='left:0px;POSITION:absolute;TOP:250px;'></div>"
suspendcode14="<DIV id=\"lovexin14\" style='text-align:right;border: 0px solid #000000;right:8px;POSITION:absolute;TOP:350px;'><table width=111 border=0 cellspacing=0 cellpadding=0><tr><td><img src=images/kf/images/qqtop.png></td></tr><tr><td align=center height=25 style=background:url(images/kf/images/qqbg.gif) center center repeat-y> <a target=_blank href=http://wpa.qq.com/msgrd?v=3&uin=48862219&site=qq&menu=yes><img border=0 src=http://wpa.qq.com/pa?p=2:48862219:41 alt=点击这里给我发消息 title=点击这里给我发消息></a><Br><Br><a target=_blank href=http://wpa.qq.com/msgrd?v=3&uin=45107129&site=qq&menu=yes><img border=0 src=http://wpa.qq.com/pa?p=2:45107129:41 &r=0.44691225936236356 alt=欢迎咨询龙脉温泉客服 title=欢迎咨询龙脉温泉客服></a><Br><Br><a target=_blank href=http://wpa.qq.com/msgrd?v=3&uin=466129952&site=qq&menu=yes><img border=0 src=http://wpa.qq.com/pa?p=2:466129952:41 alt=龙脉温泉在线咨询客服 title=龙脉温泉在线咨询客服></a><Br></td></tr><tr><td><img src=images/kf/images/qqbot.png></td></tr></table></div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);


//兼容IE6背景透明
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. 
{ 
    var arVersion = navigator.appVersion.split("MSIE") 
    var version = parseFloat(arVersion[1]) 
    if ((version >= 5.5) && (document.body.filters)) 
    { 
       for(var j=0; j<document.images.length; j++) 
       { 
          var img = document.images[j] 
          var imgName = img.src.toUpperCase() 
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG") 
          { 
             var imgID = (img.id) ? "id='" + img.id + "' " : "" 
             var imgClass = (img.className) ? "class='" + img.className + "' " : "" 
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 
             var imgStyle = "display:inline-block;" + img.style.cssText 
             if (img.align == "left") imgStyle = "float:left;" + imgStyle 
             if (img.align == "right") imgStyle = "float:right;" + imgStyle 
             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 
             var strNewHTML = "<span " + imgID + imgClass + imgTitle 
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
             img.outerHTML = strNewHTML 
             j = j-1 
          } 
       } 
    }     
} 
window.attachEvent("onload", correctPNG); 

