function wintopii66(val) { if (document.getElementById(val).style.display!="none") { document.getElementById(val).style.display="none"; }else{ document.getElementById(val).style.display="" return; } } var ContextPath = "/chat"; document.writeln("
"); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln("
 <\/td>"); document.writeln("<\/tr>"); document.writeln("
"); document.writeln(""); document.writeln("<\/span>"); document.writeln("<\/td>"); document.writeln("<\/tr>"); document.writeln("
\"关闭\"<\/span><\/td>"); document.writeln("<\/tr>"); document.writeln("
\"展开\"<\/span><\/td>"); document.writeln("<\/tr>"); document.writeln("<\/table>"); document.writeln("<\/div>"); //滚动代码开始 function qqshow(){ if (document.body.offsetWidth >900) { document.getElementById("qq_right").style.top=(document.documentElement.scrollTop+80)+"px"; } else { document.getElementById("qq_right").style.display="none"; } } function showqq(){ setTimeout("qqshow();",10); } window.onscroll=showqq; window.onresize=qqshow; window.onload=qqshow; function fullScreen(){ this.moveTo(0,0); this.outerWidth=screen.availWidth; this.outerHeight=screen.availHeight; } window.maximize=fullScreen; $( function() { initPosition(); } ); function checkOnline(recid) { //alert("@@@@"); $.ajax( { type: "POST", url: "http://"+location.host+"/chat/service/message.do?act=query&recid="+recid+"&sid=" + Math.random(), dataType: "xml", async: false , //alert(url); success: function(data) { if (data != null) { var result = data.selectSingleNode("/response/result").text if(result == "true"){ $("#"+recid).attr("src","/chat/img/online.gif"); $("#"+recid).attr("title","在线,为您服务!"); }else{ $("#"+recid).attr("src","/chat/img/offline.gif"); $("#"+recid).attr("title","不在线,请留言!"); } } }, error :function(request,error){ alert(error); } }); } function initPosition() { //alert("@@@@"); $.ajax( { type: "POST", url: "http://"+location.host+"/chat/user.do?act=viewServicePositions&sid=" + Math.random(), //dataType: "xml", async: false , success: function(data) { if (data != null) { $("#qqfaceid3").html(data); } }, error :function(request,error){ //alert(error); } }); } $( function() { checkOnline('liangfei'); checkOnline('qiupeng'); checkOnline('xuzihang'); checkOnline('chenglei'); checkOnline('hanmei'); checkOnline('wangzhiyong'); checkOnline('renjun'); checkOnline('luming'); checkOnline('liangfang'); checkOnline('lizhiqiang'); checkOnline('pengxiaolu'); } );