function getHxLoginCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) c_end = document.cookie.length; return unescape(document.cookie.substring(c_start, c_end)) } } return ""; } var hxschoolid = 0; var hxcourseid = 0; var hxulid = 0; var hxcategoryid = 0; var hxfloathtml = ''; var hxchatbottomhtml = ''; var hxopenurl = ''; var hxchatcenterhtml = ''; var schgroupid=0; var hxhref = window.location.href; var hxrefer = encodeURIComponent(document.referrer); var hxcururl = encodeURIComponent(window.location.href); var hxwebtitle = encodeURIComponent(document.title); var id = hxhref.match(/\/kecheng\/(\d+).html/); var id1 = hxhref.match(/\/kecheng\/(\d+)\//); var huodong = hxhref.match(/sale.houxue.com\/huodong\/chongwu.html/); var category = hxhref.match(/zhuanti.houxue.com\/([a-zA-Z]+).html$/); if (category) { hxcategoryid = category[1]; } if (id) { hxcourseid = id[1]; } if (id1) { hxcourseid = id1[1]; } if (hxschoolid <= 0 && hxcourseid <= 0) { hxwebtitle = ''; } if (getHxLoginCookie('userid')) { hxulid = getHxLoginCookie('userid'); } hxopenurl = "https://im.houxue.com/chat/message/index?c=37AEAAEFC663B894F18CAEF44CBD820D&w=w140&s=10051&sn=&n=%25E6%259D%25A8%25E8%2580%2581%25E5%25B8%2588&p=0&si=&st=0&t=0&phone=18911832258&comname=%25E5%258C%2597%25E4%25BA%25AC%25E9%2592%2588%25E5%2588%2580%25E5%258C%25BB%25E5%25AD%25A6%25E5%259F%25B9%25E8%25AE%25AD&aid=0&seattype=0&curtime=1714209705"; if (hxopenurl != "") { hxopenurl += '&sl=' + hxschoolid + '&pg=' + hxcourseid + '&r=' + hxrefer + '&webtitle=' + hxwebtitle + '&ulid=' + hxulid + '&cururl=' + hxcururl; } if (typeof(jQuery) == "undefined") { hxfloathtml += ''; } var HXSeatCss = ''; if (document.getElementById("rs-nav-box") == undefined || document.getElementById("rs-nav-box") == null) { hxfloathtml +='
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '

课程咨询:18911832258

' hxfloathtml += '

商务合作:025-66052372

' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '在线预约' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '' hxfloathtml += '

厚学网公众号

' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '意见反馈' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml += '
' hxfloathtml +='
' } document.domain = 'houxue.com'; document.write(HXSeatCss); document.write(hxfloathtml); //右侧导航栏动效 $(function() { var h = $(window).height(); $('#rs-nav-box').height(h); if(parseInt(h) <= 700) { $('#rs-nav-icon-totop').css({'position':'relative','bottom':'auto'}) $('#rs-nav-icon-opinion').css({'position':'relative','bottom':'auto'}) } else { $('#rs-nav-icon-totop').css({'position':'fixed','bottom':'100px'}) $('#rs-nav-icon-opinion').css({'position':'fixed','bottom':'136px'}) } $('.rs-nav-icon').mouseenter(function() { $(this).css('background-color','#eb4245'); $(this).children().last().css('display','block'); }); $('.rs-nav-icon').mouseleave(function() { $(this).css('background-color','transparent'); $(this).children().last().css('display','none'); }); $('#rs-nav-icon-totop').mouseenter(function() { $(this).css('background-color','#eb4245'); }); $('#rs-nav-icon-totop').mouseleave(function() { $(this).css('background-color','transparent'); }); $(window).resize(function() { var h = $(window).height(); $('#rs-nav-box').height(h); if(parseInt(h) <= 700) { $('#rs-nav-icon-totop').css({'position':'relative','bottom':'auto'}) $('#rs-nav-icon-opinion').css({'position':'relative','bottom':'auto'}) } else { $('#rs-nav-icon-totop').css({'position':'fixed','bottom':'100px'}) $('#rs-nav-icon-opinion').css({'position':'fixed','bottom':'136px'}) } }); $('#rs-nav-icon-totop').click(function(e) { $("html,body").animate({'scrollTop':'0'}); }); $('#rshow-min li a').hover( function() { var bc = $(this).css('background-color'); $(this).css({'box-shadow':'0 0 2px 2px ' + bc,'z-index':'10'}); $(this).stop(false).animate({'top':'-2px','borderWidth':'1px'},'fast'); }, function() { $(this).stop(false).animate({'top':'0'},'fast'); $(this).css({'box-shadow':'none','z-index':'0'}); } ); $('#kf-top-logo,#rshow').hover(function() { $('#rshow').css('display','block'); }); $('#rshow,#kf-top-logo').mouseleave(function() { $('#rshow').css('display','none'); }); }); //多坐席页面弹出聊天窗口 //处理先关闭或刷新了父窗口,再关闭子窗口无法清除cookie的bug var thissiteid = ''; var thisobj = null; window.onunload = function() { if(thisobj && thissiteid) { delete_chat_cookie(); } } function delete_chat_cookie() { document.cookie = thissiteid + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT'; document.cookie = 'chatSiteid=; expires=Thu, 01 Jan 1970 00:00:00 GMT'; } //------ var pageD = new Date(); var fatherPage = pageD.getTime(); //给每一个页面定义一个唯一的标记 function chat_open(siteid,url) { //断开小窗口 if(typeof(normall_chatbox) == 'function') { normall_chatbox(siteid); } if(url){ hxopenurl=url; } //---------- var cs = getHxLoginCookie('chatSiteid'); var fp = getHxLoginCookie(cs); if(cs) { //相同页面下 if(fp == fatherPage) { samepage_chat_open(siteid); } //不同页面下,siteid相同 else if(cs == siteid && fp != fatherPage) { document.cookie = 'sameSiteid=' + siteid; samepage_chat_open(siteid); } //不同页面下,siteid不同 else if(cs != siteid && fp != fatherPage) { document.cookie = 'allDifferent=' + siteid; samepage_chat_open(siteid); } } //cookie中不存在该siteid else { samepage_chat_open(siteid); return; } } //相同页面下打开窗口 var lastobjname = ''; function samepage_chat_open(siteid) { var objname = 'obj' + siteid; try{ eval(objname); } catch(e){ eval(objname + '= null'); //定义以obj开头siteid值为结尾的全局动态变量名 } if(lastobjname !== '' && eval(lastobjname).closed) { eval(lastobjname + '= null'); lastobjname = ''; //如果上一次窗口对象存在,并且窗口已经关闭,上一次窗口名及窗口对象清空 } if(eval(objname) && eval(objname).closed) { eval(objname + '= null'); //如果此窗口对象存在,并且窗口已经关闭,将窗口对象清空 } if(eval(objname + '=== null')) { var iWidth = 620; //弹出窗口的宽度; var iHeight = 500; //弹出窗口的高度; var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置; var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置; try { eval(objname + "= window.open(hxopenurl,siteid,'height=' + iHeight + ',innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no,status=no,z-look=yes,alwaysRaised=yes,depended=yes,hotkeys=yes')"); if(eval(objname)) { document.cookie = 'chatSiteid=' + siteid; //将当前窗口siteid写入cookie document.cookie = siteid + '=' + fatherPage; //将当前父窗口标识写入cookie thissiteid = siteid; thisobj = eval(objname); //判断同页面下窗口打开情况 if(lastobjname === '' || eval(lastobjname + '=== null')) { eval(objname).focus(); //eval(objname).click(); } else { eval(lastobjname).userpraise(); //打开评价窗口 //setTimeout(eval(lastobjname).focus(),2000) //设置旧窗口在前 } lastobjname = objname; //更新最近打开的窗口变量名 } else { location.href = hxopenurl; } } catch (e) { location.href = hxopenurl; } } else { eval(objname).focus(); //eval(objname).click(); } }