﻿
window.onload=function(){
var leftPx=parseInt((document.body.offsetWidth-450)/2);
var divStr="<div id='KF' style='width:300px;height:131px;padding:50px 20px 0px 130px;background:url(/Img/KfBg.gif);position:absolute;top:300px;left:"+leftPx+"px'>"+
            "<div style='color:#03F;line-height:200%;text-indent:2em;'>您好，我是同仁医院客服工作人员。请问有什么需要我为您服务呢？（如果在服务过程中因网络故障，没能及时回复您的讯息，请您留言。我们会及时与您联系，谢谢！）</div>"+
            "<div style='width:68px;height:20px;text-align:center;background:url(/Img/KfBtnBg.jpg);font-size:13px;color:#F60;line-height:20px;margin:10px 0px 0px 50px;float:left;'><a href='tencent://message/?uin=837807355&amp;Service=0&amp;sigT=c91aed75f6ce89f7fc95efcb07ae5b66d396e37bb891ba96bf7a544943a82b887bf5289cfc75d7b8406d9df66fafa1ca1074ace33e1a626a' style='color:#F60;'>接 受</a></div>"+
            "<div style='width:68px;height:20px;text-align:center;background:url(/Img/KfBtnBg.jpg);font-size:13px;color:#F60;line-height:20px;margin:10px 0px 0px 50px;float:left;'><a href='#' onclick='document.getElementById(\"KF\").style.display=\"none\";return false;' style='color:#F60;'>下 次</a></div>"+
            "</div>";
            
    var divKF=document.createElement("div");
    divKF.innerHTML=divStr;
    document.body.appendChild(divKF);
    window.setInterval("QQImg()",100);
};

function QQImg(){
	document.getElementById("KF").style.top=document.documentElement.scrollTop+245+'px';
	document.getElementById("OnLineKF").style.top=document.documentElement.scrollTop+240+'px';
	document.getElementById("OnLineKF").style.left=(document.body.offsetWidth-108)+'px';
}

