var jyMainDivLeft = 1; var jyGifShow = "none"; var jyMainDivShow = ""; jyMainDivLeft=1; jyMainDivShow=''; jyGifShow='none'; var strMainDivHTML= ""; strMainDivHTML+="
"; strMainDivHTML+="
"; strMainDivHTML+=" <\/div>"; strMainDivHTML+="<\/div>"; var strPopDivHTML = ""; strPopDivHTML += " "; strPopDivHTML += " "; strPopDivHTML += "
<\/td>"; strPopDivHTML += " \u60a8\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u80fd\u5e2e\u60a8\uff1f<\/td>"; strPopDivHTML += " <\/tr>"; strPopDivHTML += "
"; strPopDivHTML += " "; strPopDivHTML += "
"; strPopDivHTML += " "; strPopDivHTML += " <\/td>"; strPopDivHTML += " <\/td>"; strPopDivHTML += " "; strPopDivHTML += " "; strPopDivHTML += " <\/td>"; strPopDivHTML += " <\/tr>"; strPopDivHTML += " <\/table><\/td>"; strPopDivHTML += " <\/tr>"; strPopDivHTML += "<\/table>"; function jiayingBulidQueryForm(title,strHTML) { var str=''; return str; } strPopDivHTML = jiayingBulidQueryForm("\u9080\u8bf7\u5bf9\u8bdd",strPopDivHTML); var jiayingChatClassObj = new JiaYingChatClass(); jiayingChatClassObj.eprId="7k35"; jiayingChatClassObj.position = 1; jiayingChatClassObj.userListJSon = eval("[{id:'jingyu',name:'\u5728\u7ebf\u5ba2\u670d',online:0},{id:'yuki',name:'\u5728\u7ebf\u5ba2\u670d',online:0}]"); jiayingChatClassObj.panelTop = 10; jiayingChatClassObj.isScroll = 1; jiayingChatClassObj.language = "zh-cn"; jiayingChatClassObj.displayType = "2"; jiayingChatClassObj.displayTimes = "200"; jiayingChatClassObj.chatFormStyle = 5; jiayingChatClassObj.isAutoChat = 0; jiayingChatClassObj.queryFormPosition = 1; jiayingChatClassObj.intialize(strMainDivHTML, strPopDivHTML, 1,1,3*1000); var img_icon = new Image(); img_icon.onreadystatechange = function() { if( !img_icon.readyState || img_icon.readyState == "complete") { var img_width = img_icon.width; var img_height = img_icon.height; var imgDiv = document.getElementById("jiayingGifDiv"); if( imgDiv != null ) { if( img_width == 0 ) img_width = 180; if( img_height == 0 ) img_height = 80; imgDiv.style.width = img_width+'px'; imgDiv.style.height = img_height+'px'; jiayingChatClassObj.intializeDIV(); //重新调整位置 } else { } } } img_icon.src = "http://chat.7k35.com/chat/img_chat/skins/ksf.jpg"; if( navigator.userAgent.indexOf("Firefox") || navigator.userAgent.indexOf("Opera") || navigator.userAgent.indexOf("Chrome")) { var img_width = img_icon.width; var img_height = img_icon.height; var imgDiv = document.getElementById("jiayingGifDiv"); if( imgDiv != null ) { if( img_width == 0 ) img_width = 180; if( img_height == 0 ) img_height = 80; imgDiv.style.width = img_width+'px'; imgDiv.style.height = img_height+'px'; jiayingChatClassObj.intializeDIV(); //重新调整位置 } } ///////////////the interface of flash/////////////////// function debugMsg(strCmd,strBody) { //document.all["txtRecvMsg"].value = document.all["txtRecvMsg"].value+"\n cmd:"+strCmd+" body:"+strBody; } function connectOK(strBody) { //document.all["txtRecvMsg"].value = document.all["txtRecvMsg"].value+"\n connect succ:"+strBody; } function connectFail(strBody) { //document.all["txtRecvMsg"].value = document.all["txtRecvMsg"].value+"\n connect fail:"+strBody; } function serverClose(strBody) { //document.all["txtRecvMsg"].value += "\n server close."; } function recvMsg(strBody) { try { //jiaying001&plksomeday&u_1157955504906_2739&yes。。 var sarray=new Array(); sarray=strBody.split('&'); //var userName = getDestUserName(); //if ( userName=='') //{ // userName = sarray[1]; //} var msg = sarray[3]; //showJiayingQueryForm(sarray[0],sarray[1],msg); } catch (e) { } } function askForChat(strBody) { // document.all["txtRecvMsg"].value = document.all["txtRecvMsg"].value+"\n ask for chat:"+strBody; var sarray = new Array(); try { sarray=strBody.split('&'); if( sarray[4] == "1" ) { jiayingChatClassObj.showRequestForm(sarray[0],sarray[1],sarray[3]); } else if( sarray[4] == "2" ) { //alert( sarray[0] +' '+sarray[1] +' '+sarray[2] +' '+sarray[3]+' '+ sarray[4]); jiayingChatClassObj.openChatWin1(sarray[0],sarray[1],sarray[1],1); } } catch(e) { alert(e); } } function sendText() { var eprId = jiayingChatClassObj.eprId; var srcId = jiayingChatClassObj.getVisitorId(); var destId = ""; var strmsg = document.all["txtSendMsg"].value; // alert('send msg'+strmsg); jiayingChatClassObj.getFlash().sendMsg(eprId,srcId,destId,strmsg,1); } function beginChat() { } /////////////////////////////////////////////////