//显示/隐藏 var vInter=0; function vShowHide(ex){ var w=document.getElementById("vChatWin"); if(!w)return; var box=document.getElementById("vChatBox"); if(!box)return; if(ex){clearInterval(vInter);box.parentNode.removeChild(box);return;} //彻底退出 if(w.style.display=="none"){ w.style.display=""; box.style.height=370+"px"; if(w.src.indexOf("about:blank")>=0) w.src="http://meet.az16.com/vChat/vKefu.asp"; //要载入src }else{ w.style.display="none"; box.style.height=20+"px"; } } function pos543(id,W,H){ //将id元素放窗口右下角 var obj=document.getElementById(id);if(!obj)return; if(isNaN(W))W=parseInt(obj.style.width); if(isNaN(H))H=parseInt(obj.style.height); var winW=1003;var winH=400; var bd=document.documentElement; if(!bd.clientWidth || window.openDatabase)bd=document.body; //safari要用body.scrollTop var scrL=bd.scrollLeft; var scrT=bd.scrollTop; if(bd.clientWidth){winW=bd.clientWidth;winH=bd.clientHeight;} if(window.opera || window.openDatabase){ //opera,safari用innerHeight才准;clientHeight不准。有滚动条时还要减17px winW=window.innerWidth; winH=window.innerHeight; if(bd.scrollHeight>winH)winW-=17; if(bd.scrollWidth>winW)winH-=17; } obj.style.left=(winW+scrL-W)+'px'; obj.style.top=(winH+scrT-H)+'px'; } document.write("
"); document.write("
 ×  视频客服↓↑Video Chat
"); document.write(" "); document.write("
"); vInter=setInterval(function(){pos543("vChatBox")},50); //开始浮动右下角;兼容代码 setTimeout("vShowHide()",300); //初始,自动点击隐藏