代码如下:
左右悬浮可分组的网站QQ在线客服代码
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
在线客服 |
|
|
script>
//leftfu.style.visibility='hidden';
//sorollDiv1.style.visibility='hidden';
var lastScrollY=0;
var setup=0.02
function heartBeat(){
diffY=document.documentElement.scrollTop;
percent=setup*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("leftfu").style.top=parseInt(document.getElementById("leftfu").style.top)+percent+"px";
document.getElementById("rightfu").style.top=parseInt(document.getElementById("rightfu").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
function divclose(name){
document.getElementById(name).style.visibility='hidden';
}
function showqqdivover(i)
{
document.getElementById("showqq"+i).style.display="block";
}
function showqqdivout(i)
{
document.getElementById("showqq"+i).style.display="none";
}
function showleftmenuover(id)
{
document.getElementById("showleftmenu_"+id).style.display="block";
}
function showleftmenuout(id)
{
document.getElementById("showleftmenu_"+id).style.display="none";
}
function showrightmenuover(id)
{
document.getElementById("showrightmenu_"+id).style.display="block";
}
function showrightmenuout(id)
{
document.getElementById("showrightmenu_"+id).style.display="none";
}
script>