首页>使用帮助

怎样获取鼠标点击事件代码?

发布日期:2017年07月05日

在线客服系统自定义链接接入方法

1、嵌入在线客服系统生成的js代码,并且配置浮动图标模块为不启动状态。

2、<script type="text/javascript">     <!-- 单独提取到js文件中,需要删除这行 -->

         functionopenJesongChatByCus(cId,tar){

                   returnopenJesongChat(cId,'c',tar);

         }       

         functionopenJesongChatByGroup(cId,tar){

                   returnopenJesongChat(cId,'g',tar);

         }

         functionopenJesongChat(cId,c,tar){

                   if("undefined" == typeofjesong){

                            var p='';

                            if( c == 'c')

                                     p = 'n='+tar;

                            else if(c == 'g'&&tar!=null&&tar!='0')

                                     p = 'g=' + tar;

                            openNoJesongJsChat(cId,p);

                   }else{

                            jesong.win.openChat(c,tar);

                   }

                   return false;

         }       

         functionopenNoJesongJsChat(cId,params){

                                     varurl = "http://live.jswebcall.com/live/" +'chat.do?c='+cId;

                                     url = url +"&chatUrl="+window.encodeURIComponent(window.location.href);

                                    

                                     if(typeofparams == 'string' &&params.length !=0 ){

                                               url += '&'+params;

                                     }

                                     if(getCook("im_refer")){

                                               url = url +"&refer="+window.encodeURIComponent(getCook("im_refer"));

                                     }

                                     varexts = null;

                                     if(getCook("JESONG_EXT_DATA")){

                                               exts = getCook("JESONG_EXT_DATA");

                                     }

                                     if(typeof(JESONG_EXT_DATA) != "undefined"){

                                               exts = JESONG_EXT_DATA;

                                     }

                                     if(exts != null &&exts != ""){

                                               url = url + "&ext="+window.encodeURIComponent(exts);

                                     }

                                     var p = "height=500,width=800,directories=no,location=no,menubar=no,resizeable=no,status=no,toolbar=no,top=100,left=200";

                                     try{

                                               varcw = window.open(url,'chat_'+cId,p);cw.focus();

                                     }catch(e){

                                               if(c.force)window.location = url;                                    

                                     }

         }

         functiongetCook(name)

         {

                   vararr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");arr=document.cookie.match(reg);if(arr){return unescape(arr[2]);}else{return null;}

         }

</script>  <!-- 单独提取到js文件中,需要删除这行 -->

 


上一篇:怎样配置固定连接代码?

下一篇:怎样开启对话验证?

北京易聊科技有限公司版权所有                         地址:北京市朝阳区新房路1号7层 京ICP备16008106号-1              本站信息未经书面授权禁止转载、摘编、复制或建立镜像,否则将追究法律责任! 如对本网站内容有著作权、版权等异议,请及时按网站联系方式通知我们,我们将认真核实,并做必要的改正!