function creatDaDaGrayDiv(_bgcolor,_opacity) { if(typeof(IE)=="undefined"){IE=(document.all) ? true: false;} if(typeof(_bgcolor)=="undefined") _bgcolor="#FFFFFF"; if(typeof(_opacity)=="undefined") _opacity=95; var bWidth=parseInt(document.documentElement.scrollWidth); var bHeight=parseInt(document.documentElement.scrollHeight); var ele=document.createElement("div"); ele.id="DaDaGrayDiv"; var styleStr="top:0px;left:0px;position:absolute;background:"+_bgcolor+";width:"+bWidth+"px;height:"+bHeight+"px;"; styleStr+=(IE)?"filter:alpha(opacity="+_opacity+");":"opacity:0;"; ele.style.zIndex=9998; ele.style.cssText=styleStr; document.body.appendChild(ele); } function closeDaDaGrayDiv(){ var obj=document.getElementById("DaDaGrayDiv"); if (obj){ if(IE){ obj.filters.alpha.opacity-=7; if(obj.filters.alpha.opacity>=1){setTimeout(function(){closeDaDaGrayDiv()},2);} else{delDaDaGrayDiv();} } else{ var al=parseFloat(obj.style.opacity); al-=0.01; obj.style.opacity=al; if(al>=0.01){setTimeout(function(){closeDaDaGrayDiv()},5);}else{delDaDaGrayDiv();} }} else return false } function delDaDaGrayDiv() { if(document.getElementById('DaDaGrayDiv')) {document.body.removeChild(document.getElementById('DaDaGrayDiv')); }} // JavaScript Document var Cookies = {}; Cookies.set = function(name, value){ var argv = arguments; var argc = arguments.length; var expires = new Date(); //expires.setTime(expires.getTime() + (10000)); var path = (argc > 3) ? argv[3] : '/'; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + "; expire=0"+ ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); }; /**//** * 璇诲彇Cookies */ Cookies.get = function(name){ var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; var j = 0; while(i < clen){ j = i + alen; if (document.cookie.substring(i, j) == arg) return Cookies.getCookieVal(j); i = document.cookie.indexOf(" ", i) + 1; if(i == 0) break; } return null; }; /**//** * 娓呴櫎Cookies */ Cookies.clear = function(name) { if(Cookies.get(name)){ var expdate = new Date(); expdate.setTime(expdate.getTime() - (86400 * 1000 * 1)); Cookies.set(name, "", expdate); } }; Cookies.getCookieVal = function(offset){ var endstr = document.cookie.indexOf(";", offset); if(endstr == -1){ endstr = document.cookie.length; } return unescape(document.cookie.substring(offset, endstr)); }; var KFsta=0; //获得客服是否在线状态 0 不在线,1 在线 var DaDaFilePath="/DaDaServer/"; //获得客服系统文件路径 var popwin = { popshow:1, popshowWhenLoad:0, popshowWhenNoKF:0, popshowWithBg:1, popshowAgain:0, winTop:-50, winLeft:-250, ImgBG:"images/sidewin/BG17.gif", infoTop:-92, infoLeft:115, infoWidth:300, infoCSS:"font-size:12px;color:#000000;text-align:left;", ImgOK:"images/sidewin/OK17.gif", ImgOKTop:-10, ImgOKLeft:-280, ImgESC:"images/sidewin/Esc17.gif", ImgESCTop:-10, ImgESCLeft:-260, delayTime:3, End:"" }; var sidewin={ sideshow:1, sideAlign:"right", sideTop:-240, sideSpace:130, End:"" }; var imgwin={ imgshow:0, imgAlign:"right", imgTop:-150, imgSpace:120, imgSrcNoKF:"images/sidewin/IMGNOKF19.gif", imgSrc:"images/sidewin/IMGHaveKF19.gif", End:"" }; var config = { XH_Width:750, XH_Height:500, XH_MsgHeight:60, XH_CloseTime:300, XH_ShowCloseTime:120, Max_MsgLen:200, XH_SendTimer:1000, KH_LoadMsg:"欢迎使用达达在线客服|连接成功,请等待接通接通客服..", KH_EnoughMsg:"欢迎使用中国漆器交易市场在线客服|连接成功,座席已满,请稍等", KH_StepOutMsg:"欢迎使用中国漆器交易市场在线客服|连接成功,客服暂时离开了一会儿,请稍等", XH_unLoadMsg:"欢迎您的访问!", KH_noKF_alertMsg:"很抱歉,我们的客服没有在线,请给我们留言,我们会尽快与您取得联系!", KH_noKF_RightInfo:"客服没有在线
请给我们留言
我们会及时与您取得联系!", KH_UserInfoImg:"


", KF_QKMsg:"您好,欢迎您的访问!|您好,欢迎您的访问,可以为您提供什么帮助|这个问题我需要和我们的技术人员落实一下,请稍等|这个问题我需要给您落实一下,方便留一下联系方式吗,我们会尽快与您联系|请问您还需要其它帮助吗,竭诚为您服务", DefaultInviteInfo:"您好来自[IP]的朋友
客服正在邀请你加入会话,我们为会您提供更好的服务", KF_AutoUploadRecord:0, XH_ForeseeSwitch:1, XH_ForeseeTime:1000, KH_BeforeLoadMsg:"欢迎使用达达在线客服系统
www.dadakf.com
加载中...", KH_NokfShowM1:0, END:"" }; var DaDaNS = (document.layers) ? 1 : 0; var DaDaIE = (document.all) ? 1: 0; function $(){return document.getElementById?document.getElementById(arguments[0]):eval(arguments[0]);} var DaDaLowerPopTP="";//是否弹出右下窗口 var DaDaLowerPopInfo="您正在尝试非法访问客服系统的系统文件,请正常访问";//定义非法访问系统文件时的提示信息 var DaDaIP="3.136.154.103";//获得IP var DaDaIPAddress="美国";//获得ip地址 var DaDaIPAdd="美国 - 康涅狄格州费尔菲尔德县费尔菲尔德镇通用电气公司";//获得简单ip地址 var DaDaURL=window.location.pathname;DaDaURL=DaDaURL+window.location.search;DaDaURL=DaDaURL.replace("&","&");//获得当前访问页 var DefaultInviteInfo=config.DefaultInviteInfo.replace("[IP]",DaDaIPAddress);//获得默认邀请详细 var DaDaScroTop=document.body.scrollTop;if (DaDaScroTop==0) DaDaScroTop=document.documentElement.scrollTop; var DaDaClientHeight=document.documentElement.clientHeight; if (DaDaClientHeight==0) DaDaClientHeight=document.body.clientHeight; if (popwin.popshow==1) {window.setTimeout("DaDacreatDivPop()",popwin.delayTime*1000)} if (sidewin.sideshow==1) {DaDacreatDivSide();} if (imgwin.imgshow==1) {DaDacreatDivImg();} if (DaDaLowerPopTP!==""){DaDaLowerDivPop("非法访问")} DaDaAjax(DaDaFilePath+"DaDaBackOffice/DaDaVsave.asp?ip="+DaDaIP+"&ipinfo="+DaDaIPAdd+"&url="+DaDaURL+"&refer="+document.referrer.replace(/&/g,"&")); //记录访问信息 DaDaAjaxGet(DaDaFilePath+"DaDaSysPage/DaDaInvitation.asp?url="+DaDaURL+"&ip="+DaDaIP+"&ipinfo="+DaDaIPAdd);//查看是否有邀请信息及发送个人状态 //window.onscroll=function(){DaDaHoldWin();} window.onresize=function(){DaDaHoldWin();} function DaDaHoldWin(){ DaDaScroTop=document.body.scrollTop; if (DaDaScroTop==0) DaDaScroTop=document.documentElement.scrollTop; DaDaClientHeight=document.body.clientHeight; if (DaDaClientHeight==0)DaDaClientHeight=document.documentElement.clientHeight; if($("D_invite")){ $("D_invite").style.left=document.body.clientWidth/2+popwin.winLeft+"px";} if ($("D_sidediv")){ if((sidewin.sideAlign).toUpperCase()=="LEFT") $("D_sidediv").style.left=sidewin.sideSpace+"px"; else $("D_sidediv").style.left=document.body.clientWidth-sidewin.sideSpace+"px";} if($("D_DadaImg")){ if((imgwin.imgAlign).toUpperCase()=="LEFT") $("D_DadaImg").style.left=imgwin.imgSpace+"px";else $("D_DadaImg").style.left=document.body.clientWidth-imgwin.imgSpace+"px";} if($("D_lowerpopdiv")){ $("D_lowerpopdiv").right=0+'px';$("D_lowerpopdiv").style.top=DaDaScroTop+DaDaClientHeight-158+"px"; } if($("DaDaGrayDiv")){ $("DaDaGrayDiv").right=0+'px';$("DaDaGrayDiv").style.height=DaDaScroTop+DaDaClientHeight+"px"; $("DaDaGrayDiv").left=0+'px';$("DaDaGrayDiv").style.width=document.body.clientWidth; } } function createXMLHttps(){var ret = null;try {ret = new ActiveXObject('Msxml2.XMLHTTP')}catch(e){try {ret = new ActiveXObject('Microsoft.XMLHTTP')}catch (ee) {ret = null}}if (!ret&&typeof XMLHttpRequest !='undefined') ret = new XMLHttpRequest();return ret;} function DaDacreatDivSide(){ var ele=document.createElement("DIV"); ele.setAttribute("id","D_sidediv"); creatEle(ele); ele.style.position="absolute"; ele.style.zIndex=9996; ele.style.top=DaDaScroTop+DaDaClientHeight/2+sidewin.sideTop+"px"; if((sidewin.sideAlign).toUpperCase()=="LEFT")$("D_sidediv").style.left=sidewin.sideSpace+"px";else $("D_sidediv").style.left=document.body.clientWidth-sidewin.sideSpace+"px"; var str=""; $("D_sidediv").innerHTML=str; } function SetDaDaFrameHeight(obj){//iframe适应高度   var cwin=obj;   if (document.getElementById)   {if (cwin && !window.opera)     {if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight){     cwin.height = cwin.contentDocument.body.offsetHeight + 20; //FF NS cwin.width = cwin.contentDocument.body.offsetWidth + 20;}     else if(cwin.Document && cwin.Document.body.scrollHeight){         cwin.height = cwin.Document.body.scrollHeight + 10;//IE cwin.width = cwin.Document.body.scrollWidth + 10;}}     else{     if(cwin.contentWindow.document && cwin.contentWindow.document.body.scrollHeight){     cwin.height = cwin.contentWindow.document.body.scrollHeight;//Opera cwin.width = cwin.contentWindow.document.body.scrollWidth;} }}} function DaDacreatDivPop(){ if($('D_invite')) {document.body.removeChild($('D_invite'));} var ele=document.createElement("DIV"); ele.setAttribute("id","D_invite"); creatEle(ele); if(Cookies.get("D_invite")=="2"){ ele.style.display="none"; } else{ if (popwin.popshowWhenLoad!==1&&Cookies.get("D_invite")=="1") ele.style.display="none"; if (KFsta==0 && popwin.popshowWhenNoKF==0) ele.style.display="none"; } if (ele.style.display!=="none"&&popwin.popshowWithBg==1) {creatDaDaGrayDiv("#666666",30);} ele.style.position="absolute"; ele.style.textAlign="left"; ele.style.verticalAlign="top"; ele.style.zIndex=9999;ele.style.top=DaDaScroTop+DaDaClientHeight/2+popwin.winTop+"px";ele.style.left=document.body.clientWidth/2+popwin.winLeft+"px"; var str=""; str=str+""; str=str+""; str=str+"
"+DefaultInviteInfo+"
"; $("D_invite").innerHTML=str;} function DaDacreatDivImg(){ var ele=document.createElement("IMG"); ele.setAttribute("id","D_DadaImg"); if (KFsta==0){ele.src=DaDaFilePath+imgwin.imgSrcNoKF;}else{ele.src=DaDaFilePath+imgwin.imgSrc;} creatEle(ele); ele.style.position="absolute"; ele.style.textAlign="left"; ele.style.verticalAlign="top"; ele.style.zIndex=9995;ele.style.top=DaDaScroTop+DaDaClientHeight/2+imgwin.imgTop+"px"; if((imgwin.imgAlign).toUpperCase()=="LEFT") {ele.style.left=imgwin.imgSpace+"px";}else {ele.style.left=document.body.clientWidth-imgwin.imgSpace+"px"}; ele.onclick=function(){OpenDaDaKF()};ele.style.cursor='hand';} function creatEle(ele){ if ($("DaDaKF")){$("DaDaKF").appendChild(ele);}else{ try{document.body.appendChild(ele);} catch(err){alert("您的网页代码不规范,不能建立客服图标")}} } function DaDaAjax(_url){ var xml = createXMLHttps(); xml.open("POST",_url,true); xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xml.send(); xml.onreadystatechange = function(){ if (xml.readyState == 4) { var ajaxdada1=xml.responseText; if (ajaxdada1=="0"){alert("您的IP被管理员设定禁止访问该网站!"); document.location.href="http://www.dadakf.com";} if (ajaxdada1.substring(0,1)=="1"){ DaDaLowerPopInfo=ajaxdada1.substring(1,ajaxdada1.length); DaDaLowerDivPop("疑似百度恶意点击");} if (ajaxdada1.substring(0,1)=="2"){DaDaLowerPopInfo=ajaxdada1.substring(1,ajaxdada1.length);DaDaLowerDivPop("提示信息");} } } } var DaDaflag=0; function DaDaAjaxGet(_url){ var xmlhttp = createXMLHttps(); xmlhttp.open("POST",_url,true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send(); xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState ==4){ var ajaxHtml=xmlhttp.responseText; if (ajaxHtml.length>5){var G=ajaxHtml.split("||"); for(var i=1;i<=G.length-1;i++){ var GG=G[i].split("|"); if(GG[0]==DaDaIP){ if (GG[5]==1){if (!$("D_invite")){DaDacreatDivPop();} if(popwin.popshowWithBg==1) {creatDaDaGrayDiv("#666666",30);} $("D_invite").style.display="block"; if (GG[4].length>2){DefaultInviteInfo=GG[4];} if (DefaultInviteInfo.indexOf("[IP]")>-1){DefaultInviteInfo=DefaultInviteInfo.replace("[IP]",DaDaIPAddress);} $("D_info").innerHTML=DefaultInviteInfo; if (DaDaflag==0){DaDaflag=1;window.focus();}i=G.lentgh+10;}}}} var SendTimer=window.setTimeout("DaDaAjaxGet('"+DaDaFilePath+"DaDaSysPage/DaDaInvitation.asp?url="+DaDaURL+"&ip="+DaDaIP+"&ipinfo="+DaDaIPAdd+"')",10000);} } } function DaDasetinvite(_ip,sta,info){FrmCmd(DaDaFilePath+"DaDaSysPage/DaDaSetGuestState.asp?ip="+_ip+"&sta="+sta+"&info="+info)} function FrmCmd(_url){if (document.getElementById("FrameForCommand")){document.getElementById("FrameForCommand").src=_url;} else{var ele=document.createElement("IFRAME"); ele.id="FrameForCommand";ele.style.width='0px';ele.style.height='0px';ele.frame=0;ele.src=_url;creatEle(ele);}} function DaDashowdiv(){var tbox=$("D_invite");tbox.style.display = "none";DaDasetinvite(DaDaIP,2," ");OpenDaDaKF();closeDaDaGrayDiv(); Cookies.set("D_invite","2");} function DaDahidediv(){var tbox=$("D_invite");tbox.style.display = "none";DaDasetinvite(DaDaIP,3," ");closeDaDaGrayDiv(); if (popwin.popshowAgain>0){window.setTimeout("DaDacreatDivPop()",popwin.popshowAgain*1000)} Cookies.set("D_invite","1"); } var DaDa_poptimer; function DaDaLowerDivAction(x){ if ($("D_lowerpopdiv")!==null){ var h = parseInt($("D_lowerpopdiv").style.height); if(h>=0)$("D_lowerpopdiv").style.height = (h + x); if(parseInt($("D_lowerpopdiv").style.height)<4&&x<0){ window.clearInterval(DaDa_poptimer); $("D_lowerpopdiv").style.display = "none";} if(parseInt($("D_lowerpopdiv").style.height) >= 160){ $("DaDaWebLink").style.display="block";window.clearInterval(DaDa_poptimer);}}} function DaDaLowerDivPop(_tp){ if (!$("D_lowerpopdiv")){ var ele=document.createElement("DIV"); ele.setAttribute("id","D_lowerpopdiv"); ele.style.position="absolute"; ele.style.zIndex=9999; ele.style.right=0; ele.style.height=0; ele.style.width=240; ele.style.bottom=0-DaDaScroTop; ele.style.overflow="hidden"; creatEle(ele); var html="
 
";html=html+"  • 信息类别:"+_tp+"
";html=html+"  • I P 地址:"+DaDaIP+"
";html=html+"  • IP所在地:"+DaDaIPAddress+"
";html=html+"  • 详细信息:"+DaDaLowerPopInfo+"
";html=html+"
 
";html=html+"