<LINK rel="stylesheet" type="text/css" href="http://www.amboedu.com/templets/style/leyuqq.css">
<div class="qqbox" id="divQQbox">
<div class="qqkfbt">
<a href='http://bjtts.web-81.com/' title="TTS" target="_blank"><img src="/v7sp/images/v7/leyubg1.gif" width="88" height="123" border=0>
</a>
</div>
<div class="lebg" id="contentid">
<div class="onqq"><div class="qqpic">
<a href="http://wpa.qq.com/msgrd?v=3&uin=471662634&site=qq&menu=yes";target=_blank; ><img border="0" SRC='http://wpa.qq.com/pa?p=2:471662634:44' alt="TTS1">
</a></div></div>
<div style="clear:both;"></div>
<div class="onqq"><div class="qqpic">
<a href="http://wpa.qq.com/msgrd?v=3&uin=1543250383&site=qq&menu=yes"; target=_blank; ><img border="0" SRC=' http://wpa.qq.com/pa?p=2:1543250383:44' alt="TTS2">
</a></div></div>
<div style="clear:both;"></div>
<div class="onqq"><div class="qqpic">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=174339714&site=qq&menu=yes"><img border="0" src=" http://wpa.qq.com/pa?p=2:174339714:44" alt="点击这里给我发消息" title="点击这里给我发消息">
</a></div></div>
<div style="clear:both;"></div>
</div>
<div class="qqfoot"><img src="http://www.amboedu.com/templets/style/img/leyubg3.gif" widht="88" height="12"></div>
</div>
<script type="text/javascript">
var tips;
var theTop = 70;
var old = theTop;
function initFloatTips()
{
tips = document.getElementById('divQQbox');
moveTips();
}
function moveTips()
{
var tt=50;
if (window.innerHeight)
{
pos = window.pageYOffset
}else if (document.documentElement && document.documentElement.scrollTop) {
pos = document.documentElement.scrollTop
}else if (document.body) {
pos = document.body.scrollTop;
}
//http:
pos=pos-tips.offsetTop+theTop;
pos=tips.offsetTop+pos/10;
if (pos < theTop){
pos = theTop;
}
if (pos != old) {
tips.style.top = pos+"px";
tt=10;//alert(tips.style.top);
}
old = pos;
setTimeout(moveTips,tt);
}
initFloatTips();
if(typeof(HTMLElement)!="undefined")//给firefox定义contains()方法,ie下不起作用
{
HTMLElement.prototype.contains=function (obj)
{
while(obj!=null&&typeof(obj.tagName)!="undefind"){//
if(obj==this) return true;
obj=obj.parentNode;
}
return false;
}
}
</script>
只需要把qq号码换成自己的就可以了!
网页中实现浮动客服窗口
最新推荐文章于 2024-09-01 12:12:11 发布