随页面悬浮滚动可展开和收缩的在线客服代码

2个月前 (03-04 11:47)阅读51回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值4189
  • 级别管理员
  • 主题837
  • 回复2
楼主

网页右侧悬浮在线客服窗口,当用户的鼠标经过时弹出显示,网站常用的悬浮客户窗口代码,可分组展开和收缩。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<title>随页面悬浮滚动可展开和收缩的在线客服代码_武鸣人</title>
<style type="text/css">
img{border:0;}
ul,li{padding:0;margin:0;}
.box_www_wuming_ren {z-index:99;right:0;width:128px;height:128px;position:absolute;}
.box_www_wuming_ren .press{right:0;width:36px;cursor:pointer;position:absolute;height:128px;}
.box_www_wuming_ren .wuming_ren_list{left:0;width:131px;position:absolute;height:128px;background:url(/img/20240304_www_wuming_ren_8.gif) no-repeat left center;}
.box_www_wuming_ren .wuming_ren_list ul{padding:43px 0 0 21px;}
.box_www_wuming_ren .wuming_ren_list li{height:26px;margin-bottom:11px;_margin-bottom:7px; list-style-type:none;}
</style>
<script type="text/javascript">
window.onload = window.onresize = window.onscroll = function ()
{//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
 var oBox = document.getElementById("qqbox_wuming"); 
 var oLine = document.getElementById("online_wuming_ren");
 var oMenu = document.getElementById("menu_wuming_ren");
 var iScrollTop = document.documentElement.scrollTop || document.body.scrollTop;
 setTimeout(function ()
 {
  clearInterval(oBox.timer);
  var iTop = parseInt((document.documentElement.clientHeight - oBox.offsetHeight)/2) + iScrollTop;
  oBox.timer = setInterval(function ()
  {
   var iSpeed = (iTop - oBox.offsetTop) / 8;
   iSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed);
   oBox.offsetTop == iTop ? clearInterval(oBox.timer) : (oBox.style.top = oBox.offsetTop + iSpeed + "px");
  }, 30)
 }, 100)
//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
 oBox.onmouseover = function ()
 {
  this.style.width = 131 + "px";
  oLine.style.display = "block";
  oMenu.style.display = "none";
 };
 oBox.onmouseout = function ()
 {
  this.style.width = '';
  oLine.style.display = "none";
  oMenu.style.display = "block";
 };
};//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
</script>
</head>
<body style="height:2000px;">
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<!--在线客服 begin -->
<div class="box_www_wuming_ren" id="qqbox_wuming" >
<div class="wuming_ren_list" id="online_wuming_ren" style="display:none;">
<ul>
<li><a href="#"><img src="/img/20240304_www_wuming_ren_9.gif" alt="网页方式"></a></li>
<li><a href="#"><img src="/img/20240304_www_wuming_ren_10.gif" alt="QQ方式"></a></li>
</ul>
</div>
<div id="menu_wuming_ren"><img src="/img/20240304_www_wuming_ren_11.gif" class="press" alt="在线客服"></div>
</div>
</body>
</html>


0
0
收藏0
回帖

随页面悬浮滚动可展开和收缩的在线客服代码 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息