国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 語言 > JavaScript > 正文

js QQ客服懸浮效果實現代碼

2024-05-06 16:11:56
字體:
來源:轉載
供稿:網友

一段js實現的QQ客服懸浮特效代碼,經常用在網頁上顯示QQ客服在線信息,很實用的一段代碼

代碼:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  2. <html xmlns="http://www.w3.org/1999/xhtml"> 
  3. <head> 
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  5. <title>QQ客服懸浮特效代碼_www.survivalescaperooms.com</title> 
  6. </head> 
  7. <body style="height:2000px;"> 
  8. <script type="text/javascript"> 
  9. windowwindow.onload = window.onresize = window.onscroll = function () 
  10. var oBox = document.getElementById("qqbox_zzjs"); 
  11. var oLine = document.getElementById("online_lanrenzhijia"); 
  12. var oMenu = document.getElementById("menu_zzjs_net"); 
  13. var iScrollTop = document.documentElement.scrollTop || document.body.scrollTop; 
  14. setTimeout(function () 
  15. clearInterval(oBox.timer); 
  16. var iTop = parseInt((document.documentElement.clientHeight - oBox.offsetHeight)/2) + iScrollTop; 
  17. oBox.timer = setInterval(function () 
  18. var iSpeed = (iTop - oBox.offsetTop) / 8; 
  19. iSpeediSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed); 
  20. oBox.offsetTop == iTop ? clearInterval(oBox.timer) : (oBoxoBox.style.top = oBox.offsetTop + iSpeed + "px"); 
  21. }, 30) 
  22. }, 100) 
  23. oBox.onmouseover = function () 
  24. this.style.width = 131 + "px"; 
  25. oLine.style.display = "block"
  26. oMenu.style.display = "none"
  27. }; 
  28. oBox.onmouseout = function () 
  29. this.style.width = ''
  30. oLine.style.display = "none"
  31. oMenu.style.display = "block"
  32. }; 
  33. }; 
  34. document.write("<style>img{border:0;}ul,li{padding:0;margin:0;}.box_lanrenzhijia {z-index:99;right:0;width:128px;height:195px;position:absolute;}.box_lanrenzhijia .press{right:0;width:36px;cursor:pointer;position:absolute;height:128px;}.box_lanrenzhijia .zzjs_net_list{left:0;width:131px;position:absolute;height:195px;background:url(images/20120321lanrenzhijia_1.gif) no-repeat left center;}.box_lanrenzhijia .zzjs_net_list ul{padding:37px 0 0 21px;}.box_lanrenzhijia .zzjs_net_list li{height:26px;margin-bottom:3px;_margin-bottom:3px; list-style-type:none;}</style><div class=/"box_lanrenzhijia/" id=/"qqbox_zzjs/"><div class=/"zzjs_net_list/" id=/"online_lanrenzhijia/" style=/"display:none;/"><ul><li><a href=/"http://wpa.qq.com/msgrd?V=1&Uin=123456789&Site=武林網&Menu=yes/"><img src=/"images/20111126lanrenzhijia_3.gif/" alt=/"武林網一號客服/"></a></li><li><a href=/"http://wpa.qq.com/msgrd?V=1&Uin=123456789&Site=武林網&Menu=yes/"><img src=/"images/20111126lanrenzhijia_3.gif/" alt=/"武林網二號客服/"></a></li><li><a href=/"http://wpa.qq.com/msgrd?V=1&Uin=123456789&Site=武林網&Menu=yes/"><img src=/"images/20111126lanrenzhijia_3.gif/" alt=/"武林網三號客服/"></a></li><li><a href=/"http://wpa.qq.com/msgrd?V=1&Uin=123456789&Site=武林網&Menu=yes/"><img src=/"images/20111126lanrenzhijia_3.gif/" alt=/"武林網四號客服/"></a></li><li><a href=/"http://wpa.qq.com/msgrd?V=1&Uin=123456789&Site=武林網&Menu=yes/"><img src=/"images/20111126lanrenzhijia_3.gif/" alt=/"武林網五號客服/"></a></li></ul></div><div id=/"menu_zzjs_net/"><img src=/"images/20111126lanrenzhijia_4.gif/" class=/"press/" alt=/"在線客服/"></div></div>"); 
  35. </script> 
  36. </body> 
  37. </html> 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 贞丰县| 日照市| 息烽县| 库尔勒市| 元谋县| 彭山县| 舒兰市| 南华县| 盐亭县| 城口县| 石狮市| 万州区| 崇文区| 元阳县| 海口市| 邯郸县| 松阳县| 会理县| 中卫市| 博罗县| 阿拉善左旗| 天峻县| 威海市| 巴楚县| 湘阴县| 朝阳市| 五河县| 武平县| 彰武县| 周口市| 岑巩县| 蒙阴县| 淄博市| 勐海县| 白玉县| 天峻县| 讷河市| 周宁县| 吉木乃县| 丰城市| 晋江市|