建站资讯

适配各种访问器的波动QQ编码?

作者:admin 发布时间:2020-11-19
本工作中室关键业务流程:企业网站建设-互联网营销推广-虚似服务器-室内空间网站域名-社区论坛维护保养升級安裝等.. 顾客服务
/*波动QQ线上在线客服*/
.QQbox{z-index:99; width:142px; right:0; top:180px; position:absolute}
.QQbox .Qlist{ width:142px; margin:0 auto}
.QQbox .Qlist .t{background:url(images/qqbox.gif) no-repeat left 0; height:4px; font-size:1px}
.QQbox .Qlist .b{background:url(images/qqbox.gif) no-repeat right 0; height:4px}
.QQbox .Qlist .con{margin:0 auto; background:url(images/qqbox.gif) repeat-y -144px 0; text-align:center}
.QQbox .Qlist .con .tit{font-size:12px; font-weight:bold; margin-bottom:5px; height:20px; line-height:20px; color:#000000}
.QQbox .Qlist .con ul{margin:0 auto; padding:0; width:133px; background-color:#FFFFFF; border:#FFFFFF 1px solid}
.QQbox .Qlist .con li{font-size:9pt; list-style-type:none; margin-top:5px; height:30px; padding-right:5px}
.QQbox .Qlist .con li a{float:center}
.QQbox .Qlist .con li span{float:left; line-height:25px; margin-left:10px; display:inline; vertical-align:middle}
/*波动QQ线上在线客服*/
/style

div > div > div id= divOnline > div > div > div > ul
li a href= msgrd?v=3 uin= site=qq menu=yes target= _blank img title= 点一下这儿帮我发信息 border= 0 alt= 点一下这儿帮我发信息 src= pa?p=2::41 / /a /li
/ul
/div
div > /div
/div
/div

script type= text/javascript
var tips;
var theTop = 180/*它是默认设置高宽比,越大越向下*/;
var old = theTop;
function initFloatTips() {
document.getElementById( divQQbox ).style.display = block
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;
}
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;
}
old = pos;
setTimeout(moveTips, tt);
}
initFloatTips();
/script

参照材料:html/


收缩