function pad2(n) { return n < 10 ? '0' + n : n } var parurl = parent.window.location.href.split('/')[2]; var pageURL = parent.window.location.href.replace(/\//g,'@'); var cookieStr = document.cookie; var username = ""; if(cookieStr=="" || cookieStr.indexOf("websocket_user") == -1) { var date = new Date(); username = pad2(date.getMonth() + 1) + pad2(date.getDate()) + pad2(date.getHours()) + pad2(date.getMinutes()) + pad2(date.getSeconds()); cookieStr = document.cookie = "websocket_user="+username; }else{ username = cookieStr.split("websocket_user=")[1].split(";")[0]; } document.write(""); var htmlStr=""; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
在线咨询
"; htmlStr +="
"; htmlStr +="
"; htmlStr +=" 电话咨询"; htmlStr +="
"; htmlStr +="
"; htmlStr +=" 发布房源"; htmlStr +="
"; htmlStr +="
"; htmlStr +=" 求租求购"; htmlStr +="
"; htmlStr +="
"; htmlStr +=" 扫码咨询"; htmlStr +="
"; htmlStr +="
0571-89937160
咨询电话
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +=" "; htmlStr +=" "; htmlStr +=" "; htmlStr +=" "; htmlStr +=" "; htmlStr +="
×
欢迎您咨询房源信息!
客服热线:0571-89937160
"; htmlStr +="
"; htmlStr +="
"; htmlStr +="
"; htmlStr +=" "; htmlStr +=" "; htmlStr +=" "; htmlStr +=" "; htmlStr +=" "; htmlStr +="
×
"; htmlStr +="
"; htmlStr +="
"; document.write(htmlStr); /* var box=document.getElementById("ChatMoveDiv"); //为box绑定一个鼠标按下事件 box.onmousedown=function(event){ event=event||window.event;//解决浏览器兼容问题 //div的左偏移量=鼠标.clientX-元素.ofsetLeft let boxLeft=event.clientX-box.offsetLeft; //div的上偏移量=鼠标.clientY-元素.ofsetTop let boxTop=event.clientY-box.offsetTop; //为document绑定一个onmousemove事件 document.onmousemove=function(event){ event=event||window.event;//解决浏览器兼容问题 //获取鼠标的坐标 let left=event.clientX-boxLeft; let top=event.clientY-boxTop; //盒子移动的最大偏移量=浏览器宽度-盒子宽度 let moveLeft=document.documentElement.clientWidth-box.offsetWidth; let moveTop=document.documentElement.clientHeight-box.offsetHeight; //让盒子不超出浏览器范围 if(left<=0){ left=0; } else if(left>moveLeft){ left=moveLeft; } else{ box.style.left=left+"px"; } if(top<=0){ top=0; } else if(top>moveTop){ top=moveTop; } else{ box.style.top=top+"px"; } }; //为document绑定一个鼠标抬起事件,鼠标松开时,将box固定在当前位置 document.onmouseup=function(){ //取消document的onmousemove事件 document.onmousemove=null; //取消document的onmouseup事件 document.onmouseup=null; }; }; */ function openwin(title,srcUrl) { document.getElementById('windowtitle').innerText=title; document.getElementById('RPframe').src=srcUrl; document.getElementById('ChatMoveDiv').style.display='block'; document.getElementById('hyn').style.display='none'; } window.addEventListener("message", function(event){document.getElementById('ChatMoveDiv').style.display='none';},false);