function ExpandGroupList(obj) { var x, dis; if (obj.node == 1) { obj.node = 0; obj.src = "http://www.dooite.com:80/pic/plus1.gif"; dis = "none"; } else { obj.node = 1; dis = "inline"; obj.src = "http://www.dooite.com:80/pic/minus1.gif"; } for(var x = obj.parentNode.parentNode.rowIndex + 1; x < document.all.CTState.rows.length; x ++) { if (document.all.CTState.rows[x].cells.length == 1) break; document.all.CTState.rows[x].style.display = dis; } } function ActiveService(nMode) { if (nMode == 1) document.all.TitleID.style.backgroundColor = "#10246A"; else document.all.TitleID.style.backgroundColor = "gray"; } function MinimizeServiceWin() { if (document.all.MainServiceTR.style.display == "none") { document.all.MainServiceTR.style.display = "inline"; document.all.MinImg.src = "http://www.dooite.com:80/pic/Minimize.gif"; } else { document.all.MainServiceTR.style.display = "none"; document.all.MinImg.src = "http://www.dooite.com:80/pic/Maximize.GIF"; } } var g_oDrag, g_posX, g_posY; function WOLBeginDrag(obj) { document.body.setActive(); document.onmousemove = WOLDragingObj; document.onmouseup = WOLEndDragObj; document.ondragstart = WOLDragingObj; g_posX = event.screenX - obj.style.pixelLeft; g_posY = event.screenY - obj.style.pixelTop; obj.style.zIndex += 1; obj.setCapture(); obj.setActive(); if (typeof(g_oDrag) == "object") g_oDrag.style.zIndex = g_oDrag.oldIndex; g_oDrag = obj; g_oDrag.oldIndex = g_oDrag.style.zIndex; g_oDrag.style.zIndex = 50; } function WOLDragingObj() { g_oDrag.style.pixelLeft = event.screenX - g_posX; g_oDrag.style.pixelTop = event.screenY - g_posY; event.returnValue = false; } function WOLEndDragObj() { document.onmousemove = null; document.onmouseup = null; document.ondragstart = null; document.releaseCapture(); document.onmousemove = null; g_oDrag.oldx = g_oDrag.style.pixelLeft - document.body.scrollLeft; g_oDrag.oldy = g_oDrag.style.pixelTop - document.body.scrollTop; } function PushButton(obj) { obj.style.borderLeftColor = "#404040"; obj.style.borderTopColor = "#404040"; obj.style.borderRightColor = "white"; obj.style.borderBottomColor = "white"; obj.all.MinImg.style.borderLeft = "1px solid #808080"; obj.all.MinImg.style.borderTop = "1px solid #808080"; obj.all.MinImg.style.borderRight = "0px none"; obj.all.MinImg.style.borderBottom = "0px none"; event.cancelBubble = true; } function PopButton(obj) { obj.style.borderLeftColor = "white"; obj.style.borderTopColor = "white"; obj.style.borderRightColor = "#404040"; obj.style.borderBottomColor = "#404040"; obj.all.MinImg.style.borderLeft = "0px none"; obj.all.MinImg.style.borderTop = "0px none"; obj.all.MinImg.style.borderRight = "1px solid #808080"; obj.all.MinImg.style.borderBottom = "1px solid #808080"; } var g_nUsers = 0; function UserChange(UserName, nChange) { if ((UserName == "客人") || (UserName.indexOf("G_") == 0)) return; switch (nChange) { case 1: g_nUsers ++; break; case 2: g_nUsers --; break; case 3: g_nUsers = 0; break; default: break; } CheckState(UserName, nChange); } function CheckState(UserName, nChange) { for (var x = 0; x < CTState.rows.length; x++) { if (((UserName == CTState.rows[x].cells[0].node) || (nChange == 3)) && (CTState.rows[x].cells.length > 1)) { if (nChange == 1) { CTState.rows[x].style.color = "black"; CTState.rows[x].cells[1].innerText = "[交谈]"; CTState.rows[x].online = 1; CTState.rows[x].all.UserImg.src = "http://www.dooite.com:80/pic/msn.gif"; } else { CTState.rows[x].style.color = "gray"; CTState.rows[x].cells[1].innerText = "[留言]"; CTState.rows[x].all.UserImg.src = "http://www.dooite.com:80/pic/msn1.gif"; CTState.rows[x].online = 0; } } } } var oPopTimer; function ShowPageMessage(msg) { var ss = msg.split("|"); document.all.JNet_MsgBox.msg = msg; document.all.JNet_MsgBox.style.width = 240; document.all.JNet_MsgBox.style.height = 180; document.body.focus(); document.all.JNet_MsgBox.contentWindow.document.write("" + "
" + "" + "" + "" + "
" + ss[2] + "" + "
" + "
" + ss[5] + "
"); document.all.JNet_MsgBox.style.display = "inline"; document.all.JNet_MsgBox.style.left = document.body.clientWidth - document.all.JNet_MsgBox.contentWindow.document.body.scrollWidth; document.all.JNet_MsgBox.style.top = document.body.clientHeight - document.all.JNet_MsgBox.contentWindow.document.body.scrollHeight; document.all.JNet_MsgBox.style.width = document.all.JNet_MsgBox.contentWindow.document.body.scrollWidth; document.all.JNet_MsgBox.style.height = 1; nOffset = 0; oPopTimer = window.setInterval(PopUpMsg, 20); } var nOffset; function PopUpMsg() { nOffset += 2; if (parseInt(document.all.JNet_MsgBox.style.width) < document.all.JNet_MsgBox.contentWindow.document.body.scrollWidth) { document.all.JNet_MsgBox.style.width = Math.max(240, document.all.JNet_MsgBox.contentWindow.document.body.scrollWidth); document.all.JNet_MsgBox.style.left = document.body.clientWidth - parseInt(document.all.JNet_MsgBox.style.width); } if (nOffset < document.all.JNet_MsgBox.contentWindow.document.body.scrollHeight + 1) { document.all.JNet_MsgBox.style.top = document.body.clientHeight - nOffset - 2; document.all.JNet_MsgBox.style.height = nOffset + 2; } else window.clearInterval(oPopTimer); } function OpenChat(obj) { if (typeof(obj) == "object") { if (obj.online == 1) RealMsg(obj.cells[0].innerText); else window.open("http://www.dooite.com:80/TableAction.asp?Clan=1&CookID=" + JNet_CookieID + "&ActionID=103", "_blank", "width=480,height=360,scrollbars=0,status=0"); } else { if (g_nUsers > 0) RealMsg("ANY"); else window.open("http://www.dooite.com:80/TableAction.asp?Clan=1&CookID=" + JNet_CookieID + "&ActionID=103", "_blank", "width=480,height=360,scrollbars=0,status=0"); } } var swfObj, swfTimer; function PlaySWF(obj, AffixFile) { var ss = AffixFile.split("@:@"); if (document.all.JNet_Flash.parentNode.tagName != "BODY") document.body.appendChild(document.all.JNet_Flash); if (typeof(obj) == "object") { if (obj.innerText == "点击停止") return StopSWF(); obj.innerText = "点击停止"; } if (swfTimer > 0) { window.clearTimeout(swfTimer); swfObj.innerText = "点击播放"; } document.all.JNet_Flash.movie = ss[0] + "&Clan=1&CookID=" + JNet_CookieID; document.all.JNet_Flash.style.display = "inline"; if (typeof(obj) == "object") swfTimer = window.setTimeout("StopSWF();", 60000); swfObj = obj; } function StopSWF() { document.all.JNet_Flash.movie = "http://www.dooite.com:80/skin/blank.swf"; document.all.JNet_Flash.style.display = "none"; if (typeof(swfObj) == "object") swfObj.innerText = "点击播放"; window.clearTimeout(swfTimer); swfTimer = 0; } function ClickMessage() { // RealMsg(document.all.JNet_MsgBox.contentWindow.document.all.oTitle.node); // HideMessage(); } function HideMessage() { document.all.JNet_MsgBox.style.display = "none"; } function ShowService(nType) { if (nType == 1) { if (typeof(document.all.OnlineImg) == "object") document.all.OnlineImg.style.display = "inline"; if (typeof(document.all.JNet_Service) == "object") document.all.JNet_Service.style.display = "inline"; } else { if (typeof(document.all.OnlineImg) == "object") document.all.OnlineImg.style.display = "none"; if (typeof(document.all.JNet_Service) == "object") document.all.JNet_Service.style.display = "none"; } } function SetServicePos(nPos) { var obj = document.all.JNet_Service; if (typeof obj != "object") return; ShowService(1); switch (nPos) { case 0: //left top list break; case 1: //right top list obj.style.left = document.body.clientWidth - obj.offsetWidth; break; case 2: //left bottom list obj.style.top = document.body.clientHeight - obj.offsetHeight; break; case 3: //right bottom list obj.style.left = document.body.clientWidth - obj.offsetWidth; obj.style.top = document.body.clientHeight - obj.offsetHeight; break; case 4: //left top mini list MinimizeServiceWin(); break; case 5: //right top mini list MinimizeServiceWin(); obj.style.left = document.body.clientWidth - obj.offsetWidth; break; case 6: //left bottom mini list MinimizeServiceWin(); obj.style.top = document.body.clientHeight - obj.offsetHeight; break; case 7: //right bottom mini list MinimizeServiceWin(); obj.style.left = document.body.clientWidth - obj.offsetWidth; obj.style.top = document.body.clientHeight - obj.offsetHeight; break; case 8: //left top icon break; case 9: //right top icon break; case 10: //left bottom icon break; case 11: //right bottom icon break; case 12: //hidden ShowService(0); break; } obj.oldx = obj.style.pixelLeft; obj.oldy = obj.style.pixelTop; } var JNet_CookieID; try { // if (window.top == window) // { JNet_CookieID = getCookieValue("JofoID"); if (JNet_CookieID == null) JNet_CookieID = 9000; setCookieValue("JofoID", JNet_CookieID, 180); document.write("
 即网通 
 技术支持
  张宏波[留言]
  ZSL[留言]
  WPF[留言]
 客户服务
  黄文[留言]
  魏波[留言]
  顶鹤[留言]
  周明生[留言]
  许钢[留言]
 客户投诉
  Jack[留言]
"); document.write("" + "" + "" + "" + "" + "" + "" + "function JNet_RTSwf::FSCommand(command,args)" + "{JNetRTSwf_FSCommand(command,args);}"); document.write (""); document.write(""); document.write (""); SetServicePos(0); Init(); // } } catch (e) { } function JNetRTSwf_FSCommand(command, args) { switch (command) { case "Tick": break; case "UserOnline": case "AddUser": UserChange(args, 1); break; case "DeleteUser": UserChange(args, 2); break; case "ClearUser": UserChange(args, 3); break; case "ShowMsg": ShowMessage(unescape(args)); break; case "BoardDraw": break; case "Init": document.all.JNet_RTSwf.SetVariable("User", "G_" + JNet_CookieID); document.all.JNet_RTSwf.SetVariable("Group", "www"); document.all.JNet_RTSwf.SetVariable("RemotePort", 60101); document.all.JNet_RTSwf.Play(); break; default: break; } //alert(command + ":" + args); } function SetJNetStatus(obj) { if (obj.width == 1) ShowService(0); obj.style.display = "none"; } var DialogWnd; function RealMsg(Receiver, nNotice, sName) { var pp; if (typeof(nNotice) != "undefined") pp = "&nNotice=" + nNotice; else pp = ""; DialogWnd = window.open("http://www.dooite.com:80/RealMsg.asp?Clan=1&CookID=" + JNet_CookieID + "&Receiver=" + escape(Receiver) + pp, sName, "width=520,height=520,left=50,top=50,resizable=1"); // if (document.body.onbeforeunload == null) // { // document.body.onbeforeunload = function () // { // if (DialogWnd.closed == false) // event.returnValue = "您正与客服对话中,结束窗口将导致对话结束。"; // } // } } function Init() { window.onresize = ResizeBody; window.onscroll = ResizeLoc; ResizeBody(); } // 滚动效果的实现 function ResizeLoc() { if (typeof document.all.JNet_frmShow == "object") { document.all.JNet_frmShow.style.top = document.body.scrollTop; document.all.JNet_frmShow.style.left = document.body.scrollLeft; } if (typeof(document.all.JNet_Service) == "object") { if (document.body.scrollTop + document.all.JNet_Service.oldy + document.all.JNet_Service.clientHeight < document.body.scrollHeight) document.all.JNet_Service.style.top = document.body.scrollTop + document.all.JNet_Service.oldy; if (document.body.scrollLeft + document.all.JNet_Service.oldx + document.all.JNet_Service.clientWidth < document.body.scrollWidth) document.all.JNet_Service.style.left = document.body.scrollLeft + document.all.JNet_Service.oldx; } } // Ifrmae 最大化 function ResizeBody() { if (typeof document.all.JNet_frmShow == "object") { document.all.JNet_frmShow.style.width = document.body.clientWidth; document.all.JNet_frmShow.style.height = document.body.clientHeight; } } function FocusFrame() { document.all.JNet_frmShow.style.zIndex = 100; } function BlurFrame() { document.all.JNet_frmShow.style.zIndex = 0; } function getCookieValue(name, type) { var cookieArr = ""; if (type == null) type = 1; if (type == "2") { cookieArr = ((unescape(document.cookie)).toLowerCase()).split(";"); name = name.toLowerCase(); } else cookieArr = (unescape(document.cookie)).split(";"); var splitLoc = 0; for (var i=0; i= 0 && whitespace.indexOf(s.charAt(i)) != -1) { i--; } s = s.substring(0, i+1); } return s; } function Trim(str) { return RTrim(LTrim(str)); } function ShowMessage(msg) { if (typeof DialogWnd == "object") { if (DialogWnd.closed == false) return; } DialogWnd = 0; var ss = msg.split("|"); switch (parseInt(ss[4])) { case 1: //讯息框 alert(unescape(ss[2]) + "说: " + unescape(ss[5])); break; case 2: //消息框 break; case 3: //推送页面 window.open(CheckURL(ss[5])); break; case 4: //清除页面 break; case 5: //推送居中图片 break; case 6: //推送全屏图片 break; case 7: //清除推送图片 break; case 8: //推送FLASH ShowPageMessage(ss[0] + "|" + ss[1] + "|" + ss[2] + "|" + ss[3] + "|" + ss[4] + "|推送动漫文件, 点击播放"); PlaySWF(0, ss[5]); break; case 9: //保留 break; case 10: //邀请弹出对话 ShowPageMessage(ss[0] + "|" + ss[1] + "|" + ss[2] + "|" + ss[3] + "|" + ss[4] + "|您好,本站客服" + unescape(ss[2]) + " 邀请您在线交谈,点击进入交谈。"); break; case 11: //邀请内联对话 if (window.confirm("本站客服" + unescape(ss[2]) + "邀请您进行在线交谈,是否接受?")) InlineDialog(ss[2]); break; case 12: //打开弹出对话框,如被禁止,则打开内联对话框 ChatSpan.innerText = ss[2]; ChatSpan.nNotice = 0; ChatSpan.click(); break; case 13: //打开内联对话框 InlineDialog(ss[2]); break; case 14: //关闭弹出对话框 break; case 15: //关闭内联对话框 InlineDialog(""); break; case 16: //隐藏客服 ShowService(0); break; case 17: //打开对话框通知 break; case 18: //结束对话框通知 break; case 19: //传送对话给其它客服 break; case 20: //打开电子白板 EnterWhiteBoard(ss[5]); break; case 21: //关闭电子白板 document.all.BoardFrame.contentWindow.LeaveWhiteBoard(); break; case 22: //邀请进入电子白板 if (window.confirm("本站客服" + unescape(ss[2]) + "邀请您进入电子白板,是否接受?")) EnterWhiteBoard(ss[5]) break; case 23: //显示客服 ShowService(1); break; case 24: //闪屏振动 break; case 25: //邀请打开协作区 ShowPageMessage(ss[0] + "|" + ss[1] + "|" + ss[2] + "|" + ss[3] + "|" + ss[4] + "|您好,本站客服" + unescape(ss[2]) + " 邀请您协同工作,点击进入交谈。"); break; case 26: //协作区页面切换 break; case 27: //载入协作区 break; case 28: //主持人变更 break; case 29: //删除当前页(协作区) break; case 30: //离开协作区 ShowPageMessage(msg); break; case 31: //接受打开协作区邀请 break; case 32: //拒绝打开协作区邀请 case 33: //更换头像 break; case 34: //发送附件文档 case 35: //发送图片 ShowPageMessage(msg); break; case 36: //通知加为好友 case 37: //邀请多人对话 break; case 38: //离开多人对话 break; case 0: case 100: ShowPageMessage(msg); break; default: break; } }