6kbbs V8.0 官方论坛  - 手机版
论坛|登录|注册
论坛 > 程序发布
发帖 | 4504点击, 5回复.
悬浮 返回顶部 QQ客服代码 代码放到第三方统计
1楼, aa13639605185, 回复
发表于 2012-03-05 12:17
悬浮 返回顶部 QQ客服代码 代码放到第三方统计
  1. <style>.QQbox{z-index:25; width:65px; right:0; top:180px; position:absolute}.QQbox .Qlist{ width:50px; margin:0 auto; overflow:hidden;}
  2. .QQbox .Qlist em { cursor:pointer;}</style>
  3. <div class="QQbox" id="divQQbox" style="display:none">
  4. <div class="Qlist" id="divOnline">
  5. <a href="#" title="返回顶部"><img border="0" src="http://img13.poco.cn/mypoco/myphoto/20121029/12/5647189220121029125550079.gif" alt="返回顶部" /></a>

  6. </div>
  7. </div>
  8. <script type="text/javascript" >var tips;
  9. var theTop = 180/*这是默认高度,越大越往下*/;
  10. var old = theTop;
  11. function initFloatTips() {
  12. document.getElementById("divQQbox").style.display = "block";
  13. tips = document.getElementById("divQQbox");
  14. moveTips();
  15. };
  16. function moveTips() {
  17. var tt = 50;
  18. if (window.innerHeight) {
  19. pos = window.pageYOffset
  20. }
  21. else if (document.documentElement && document.documentElement.scrollTop) {
  22. pos = document.documentElement.scrollTop
  23. }
  24. else if (document.body) {
  25. pos = document.body.scrollTop;
  26. }
  27. pos = pos - tips.offsetTop + theTop;
  28. pos = tips.offsetTop + pos / 10;
  29. if (pos < theTop) pos = theTop;
  30. if (pos != old) {
  31. tips.style.top = pos + "px";
  32. tt = 10;
  33. }
  34. old = pos;
  35. setTimeout(moveTips, tt);
  36. }
  37. initFloatTips();
  38.         //=点击展开关闭效果=
  39. function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){
  40. var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
  41. var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
  42. var openTip = oOpenTip || "";
  43. var shutTip = oShutTip || "";
  44. if(targetObj.style.display!="none"){
  45.    if(shutAble) return;
  46.    targetObj.style.display="none";
  47.    if(openTip  &&  shutTip){
  48. sourceObj.innerHTML = shutTip;
  49.    }
  50. } else {
  51.    targetObj.style.display="block";
  52.    if(openTip  &&  shutTip){
  53. sourceObj.innerHTML = openTip;
  54.    }
  55. }
  56. }</script>
该帖子于 2013-06-22 12:03 编辑过
2楼, aa13639605185, 回复
发表于 2012-03-05 12:23
不顶我无语
3楼, zym, 回复
发表于 2012-03-05 14:19
顶吧!呵呵
4楼, notery, 回复
发表于 2012-09-23 12:37
顶顶顶顶顶
5楼, redlife, 回复
发表于 2012-09-24 15:50
顶顶更健康
6楼, epcn, 回复
发表于 2012-10-23 09:56
怎么会话里的QQ带有广告啊
TOP
论坛 > 程序发布