在网页里添加客服

html文件的<body>添加

 1 <!--qq客服-->
 2 <div class="box_os">
 3   <div class="os_x" style=""></div>
 4     <div class="osqq">
 5     <p><em>(工作日:9:30-18:30)</em></p>
 6    <!--
 7     <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2692594761&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2692594761:51" alt="欢迎欢迎热烈欢迎" title="欢迎欢迎热烈欢迎"/></a>
 8    -->
 9       <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2692594761&site=qq&menu=yes"><p id="ico_onlineqq" class="qq"></p></a>
10       <p><strong>微博</strong><span><a href="http://weibo.com/" target="_blank">微博账户名</a></span></p>
11
12     </div>
13     <div class="acbox">
14       <a class="ico_pp" href="javascript:void(0);" title=""></a>
15         <a class="ico_gt" href="javascript:" target="_self" title=""></a>
16         <div style="display: none;" ><img src="static/images/two-dimension.jpg" style="width:120px;height:120px"></div>
17     </div>
18 </div>
19 <div class="onlineService">
20   <p class="ico_os"></p>
21     <a class="ico_pp"  href="#" title=""></a>
22      <div style="display: none;margin-left:-120px;margin-top:-12px;" ><img src="static/images/two-dimension.jpg" style="width:120px;height:120px"></div>
23     <a class="ico_gt" href="javascript:" target="_self" title=""></a>
24
25 </div>

<head>添加

1 <!--在线客服的css-->
2    <script src="js/service.js" type="text/javascript"></script>
3    <link href="static/css/lanrenzhijia.css" rel="stylesheet" type="text/css" />

service.js文件

  1 $(function(){
  2
  3     var _userAgent = window.navigator.userAgent.toLowerCase();
  4     if(_userAgent.indexOf(‘android‘)<0 && _userAgent.indexOf(‘iphone‘)<0 &&  _userAgent.indexOf(‘ipad‘)<0 )
  5     {
  6
  7     if($.cookie("onlineSP")==null||$.cookie("onlineSP")=="0"||$.cookie("onlineSP")=="")
  8         {
  9             $(‘.onlineService‘).show();
 10             $(‘.box_os‘).hide();
 11         }
 12         else if($.cookie("onlineSP")=="1")
 13         {
 14             $(‘.onlineService‘).hide();
 15             $(‘.box_os‘).show();
 16         }
 17
 18     }
 19     else{
 20         $(‘.onlineService‘).show();
 21         $(‘.box_os‘).show();
 22
 23     }
 24
 25     $(‘.onlineService .ico_os‘).click(function()
 26     {
 27         $(‘.onlineService‘).hide();
 28         $(‘.box_os‘).show();
 29         $.cookie("onlineSP","0",{expires:1,path:"/",domain:"lanrenzhijia.com"});
 30     });
 31     $(‘.os_x‘).click(function()
 32     {
 33         $(‘.box_os‘).hide();
 34         $(‘.onlineService‘).show();
 35         $.cookie("onlineSP","1",{expires:2100000000,path:"/",domain:"lanrenzhijia.com"});
 36     });
 37     $boxOsFun = function(){var st=$(document).scrollTop();if (!window.XMLHttpRequest) {$(‘.box_os‘).css(‘top‘,st+44);$(‘.onlineService‘).css(‘top‘,st+44);}};
 38     $(window).bind(‘scroll‘, $boxOsFun);
 39     $boxOsFun();
 40
 41     var feedback_url =‘http://www.lanrenzhijia.com‘;
 42
 43     $(‘.acbox .ico_pp‘).hover(function(){
 44         $(this).stop().animate({height:‘52px‘},‘fast‘);
 45         },function(){
 46         $(this).stop().animate({height:‘33px‘},‘fast‘);
 47         }
 48     );
 49     $(‘.acbox .ico_gt‘).hover(function(){
 50         $(this).stop().animate({height:‘52px‘},‘fast‘);
 51         },function(){
 52         $(this).stop().animate({height:‘33px‘},‘fast‘);
 53         }
 54     );
 55
 56     $(‘.onlineService .ico_pp‘).hover(function(){
 57         $(this).stop().animate({width:‘87px‘},‘fast‘);
 58         },function(){
 59         $(this).stop().animate({width:‘39px‘},‘fast‘);
 60         }
 61     );
 62     $(‘.onlineService .ico_gt‘).hover(function(){
 63         $(this).stop().animate({width:‘97px‘},‘fast‘);
 64         },function(){
 65         $(this).stop().animate({width:‘39px‘},‘fast‘);
 66         }
 67     );
 68
 69     $(‘.ico_gt‘).click(function(){
 70         $("html, body").animate({scrollTop:0}, 1);
 71     })
 72
 73
 74     //分辨率
 75     if ( $(window).width()<1200 || screen.width<1200)
 76     {
 77         $(‘.hydp950,.w_950,.sdmain,.main‘).css(‘overflow‘,‘hidden‘);
 78         $(‘.top_bg‘).css({‘overflow‘:‘hidden‘,‘width‘:‘950px‘,‘margin‘:‘0 auto‘});
 79         $(‘.db_bg2‘).addClass(‘db_bg2_s‘);
 80         $(‘.jstd_c .bg_l,.jstd_c .bg_r‘).css(‘display‘,‘none‘);
 81         $(‘#js_play .prev‘).css(‘left‘,‘0‘);
 82         $(‘#js_play .next‘).css(‘right‘,‘0‘);
 83         $(‘#videoplay .prev, #videoplay2 .prev‘).addClass(‘prev_s‘);
 84         $(‘#videoplay .next, #videoplay2 .next‘).addClass(‘next_s‘);
 85     }else{
 86         $(‘.hydp950,.w_950,.sdmain,.main‘).removeAttr(‘style‘);
 87         $(‘.top_bg‘).removeAttr(‘style‘);
 88         $(‘.db_bg2‘).removeClass(‘db_bg2_s‘);
 89         $(‘.jstd_c .bg_l,.jstd_c .bg_r‘).removeAttr(‘style‘);
 90         $(‘#js_play .prev‘).removeAttr(‘style‘);
 91         $(‘#js_play .next‘).removeAttr(‘style‘);
 92         $(‘#videoplay .prev, #videoplay2 .prev‘).removeClass(‘prev_s‘);
 93         $(‘#videoplay .next, #videoplay2 .next‘).removeClass(‘next_s‘);
 94     }
 95     $(".ico_pp").hover(function(){
 96     $(".ico_pp").siblings("div").fadeIn(0);
 97     },function(){
 98         $(".ico_pp").siblings("div").fadeOut(0);
 99     });
100
101 });

lanrenzhijia.css文件

 1 @charset "utf-8";
 2 /* 代码整理:懒人之家 www.lanrenzhijia.com */
 3 *{ margin:0; padding:0; list-style:none;}
 4 img{ border:0;}
 5
 6
 7 /*-- 本例样式 --*/
 8 .box_os .os_x, .box_os .osqq, .ico_os, .ico_gt, .ico_pp, .osqq .qq{ background:url(../images/kf.png) no-repeat;}
 9 .box_os{ height:auto; overflow:hidden; width:131px; position:fixed; right:0; top:44px; _position:absolute; z-index:9999;display:none;}
10 .box_os .os_x{ background-color:#f7f7f7; background-position:2px 2px; width:18px; height:20px; float:right; display:inline; cursor:pointer; margin-top: 30px;}
11 .box_os .osqq{ width:129px; border:1px solid #D1D1D1; background-color:#fff; background-position:0 -120px; clear:both; padding:37px 0 8px 0; text-align:center;}
12 .box_os .osqq p{ height:auto; line-height:20px;width:129px; margin-top:8px;}
13 .box_os .osqq p strong{ color:#666;}
14 .box_os .osqq img{ padding:7px 0 3px 0;}
15 .box_os .osqq p em{ color:#999; display:block;}
16 .box_os .osqq p span{ color:#547816; display:block;}
17 .box_os .osqq .qq{ background-position:-140px -120px; display:block; width:99px; height:26px; margin:0 auto; margin-top:8px; cursor:pointer;}
18 .acbox{ width:130px; overflow:hidden;}
19 .acbox .ico_gt{ background-position:-60px 0; border:1px solid #299ec0; border-top:0; cursor:pointer; width:60px; height:33px; float:right;}
20 .acbox .ico_pp{ background-position:-60px -60px;border-top:0; cursor:pointer; width:60px; height:33px; float:right; margin:0 2px;}
21 .onlineService{ background:none; display:none; width:39px; *width:84px; height:178px; ;position:fixed; right:0; top:84px; _position:absolute;}
22 .onlineService .ico_os{ background-position:-2px -20px; border:1px solid #c7c7c7; cursor:pointer; width:39px; height:98px; float:right;}
23 .onlineService .ico_gt{ background-position:right 0; border:1px solid #299ec0; cursor:pointer; width:39px; height:37px; float:right; clear:both;}
24 .onlineService .ico_pp{ background-position:right -60px; cursor:pointer; width:40px; height:37px; float:right; margin:0 0 1px 0; clear:both;}
25 .box_os .osqq p span a{color:#557917;}
26 /* 代码整理:懒人之家 www.lanrenzhijia.com */

在网页里添加客服,布布扣,bubuko.com

时间: 2024-08-10 21:30:15

在网页里添加客服的相关文章

用c#开发微信 (18) 多客服

微信官方的多客服接口原理是通过用户发送的信息,开发者服务器返回一条指定类型的响应信息,使用户的对话状态切换到官方的多客服状态(持续一段时间),这段时间内用户发送的所有信息都不会到达开发者的服务器,而是转到多客服的软件上.     1 开通多客服 先开通微信认证:再从"功能"->"添加功能插件"里选择"多客服"以开通多客服功能   2 添加客服工号 在"功能"->"多客服"里添加客服工号:    

在主页面添加个qq客服实现当点击图片时可以与指定QQ号的人进行聊天

首先在主页面内容的最后面添加一个div <!--QQ客服代码--> <style type="text/css"> .qqkefu{ position: fixed; top: 30%; right: 0px; width:114px;height: 182px;} </style> <div class="qqkefu"> <a target="_blank" href="http

验证客服按钮及链接跳转正确性(实战)

小的需求迭代:页面添加客服按钮:页面上下滚动客服按钮要一直显示:按钮跳转到固定链接 分步实现: 1 利用cookie跳过登录(打开网页,写入cookie刷新或再次get网址) 2 验证客服按钮是否显示(element.isdisplayed()) 3 验证页面滚动后客服按钮是否显示 (执行js脚本) 4 验证客服按钮跳转链接的正确性(切换窗口) 5 发生异常或用例失败时保存截图 (get_sreenshot_as_file(),捕获异常try...except...finally...) # c

选型宝访谈:AI时代,如何重新定义客服软件?

写在前面 客户服务(Customer Service)是连接企业与客户的纽带,是企业竞争力不可或缺的组成部分.做为现代企业标配的客服系统,已成为企业提高客户满意度,并进而赢得客户.赢得市场,保证企业可持续发展的重要工具. 随着信息技术的发展,以及C端客户消费场景和沟通方式的改变,企业传统的客服系统正经历着从语音客服向全媒体客服.从服务客服向营销客服.从人工客服向智能客服的转变过程. 那么,今天的企业应该选择怎样的客服系统?应该建设怎样的客服中心?应该建立怎样的客服体系? 李维良(主持人) 企业传

17款jQuery在线QQ客服代码分享

17款jQuery在线QQ客服代码分享给大家咯!!拿走,不谢,我叫雷锋~~ jQuery侧边栏点击展开收缩在线QQ客服代码 jQuery网页右侧固定层显示隐藏在线qq客服代码 jQuery点击按钮遮罩弹出在线QQ客服代码 jQuery带留言在线qq客服代码 绿色的jquery qq在线客服网页右侧固定层qq客服隐藏显示代码 蓝色的jquery固定div悬浮在线客服代码 jquery固定层网页侧边栏在线qq客服代码 jquery浮动在左侧的QQ客服代码 带有弹性可伸缩的在线客服代码 jquery右

微信公众平台多客服

微信公众平台官方推出多客服功能,商户在微信公众平台(http://mp.weixin.qq.com)开通人工客服权限以后,于"功能-多客服"中,添加客服.然后可以在电脑端上使用多客服接待.其使用方法如下. 1建立客服团队 商户在微信公众平台(http://mp.weixin.qq.com)开通人工客服权限以后,于"功能-多客服"中,添加客服. 2在电脑上使用多客服接待 下载并安装多客服软件:点击下载 多客服账号采用"工号@微信号"的形式进行登录,

如何申请开通微信多客服功能

2014年5月9日,微信团队发布最新消息,微信公众平台增加投票和多客服功能(多客服为公众帐号提供多客服功能,支持多人同时为一个公众号提供客服服 务),尤其是之前一直严格限制的“多客服功能”,仅限于招商银行等极少数服务号在测试,现在微信正式开放申请,下面亚成就和大家一起分享一下,此次多客服 功能的使用方法. 在微信公众平台申请开通多客服使用权限 认证的微信服务号(订阅号和未认证的服务号没有权限申请多客服功能)可以在 “公众平台-服务-服务中心” 点击 “多客服”. 在多客服页面,点击“开通”,开通

微信公众号 获得多客服使用权限

认证的微信服务号可以在 “公众平台-功能-添加功能插件” 看到 “多客服” 申请入口,申请开通即可. 2建立客服团队 商户在微信公众平台(http://mp.weixin.qq.com)开通人工客服权限以后,于“功能-多客服功能”中,添加客服. 3确认微信公众平台所属模式 商户于“公众平台-开发者中心”查看公众号是否启用开发者模式 未启用 已启用 如果公众号未启用开发者模式,直接跳过此步骤: 如果公众号处于开发模式,需要在接收到用户发送的消息时,返回一个MsgType为transfer_cust

微信多客服对接方案

获得多客服使用权限 认证的微信服务号可以在 "公众平台-功能-添加功能插件" 看到 "多客服" 申请入口,申请开通即可. 5在微信上使用多客服接待 关注公众号"多客服助手"(duokefu) 绑定工号 6在电脑上收到客户消息 7微信上收到客户消息 2建立客服团队 商户在微信公众平台(http://mp.weixin.qq.com)开通人工客服权限以后,于"功能-多客服功能"中,添加客服. 3确认微信公众平台所属模式 商户于&q