[공대여자는이쁘다] 자동링크 질문 드립니다.

5

  • 안녕하세요. 공대여자님
  • 공대여자는 이쁩니다.^^
  • 질문 좀 드릴께요.
  • 아 참, 저는 완전초보 입니다.

  • 네트비님 공개채팅(netb.co.kr)프로그램 사용중입니다.(아래소스)
  • 채팅중에 URL이 올라오면 자동링크가 되게 하고 싶은데,
  • 초보의 수준에서 쉽지 않아서 도움을 청합니다.
  • 하루종일 여기 저기 붙여보는데 안되네요. ㅡㅡ
  • 거친마루님의 오토링크 붙여보고 있었습니다.
  • 아래소스 조금 손봐 주시면 안될까요?
  •  # input.php도 첨부합니다.
    ------------------------------------------------------------------------------------------
    <html>
    <head>
    </head>
    <body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" oncontextmenu="return false">

  • <script>
  • function WriteChangeRoomName(pRoomname)
    {
     top.main.title.location.href = "title.php?title=" + pRoomname;
     WriteNotify("<font color=blue><b>방제목이 " + pRoomname + " (으)로 바뀌었습니다</b></font>");
    }

  • function WriteMasterRoomInfo(pRoomid, pRoomname, pRoomlimit, pRoomtype, pRoompass, pRoomgroup)
    {
     var chatid = top.ChatApplet.chat.GetUserid();
     var roomid = top.ChatApplet.chat.GetRoomid();
     var master = top.ChatApplet.chat.GetMaster();
     
     if (master == "1")
      window.open("menu/master_menu.php?chatuserid=" + escape(chatid) + "&roomid=" + roomid + "&roomname=" + escape(pRoomname) + "&roomlimit=" + pRoomlimit + "&roomtype=" + pRoomtype + "&roompass=" + escape(pRoompass) + "&roomgroup=" + pRoomgroup, "", 'width=310,height=360,resizable=no,scrollbars=no');
     else
      alert('관리자만 실행할 수 있습니다');
    }
    function JoinRoom(pTitle)
    {
     top.main.document.clear(); 
     top.main.document.open();
     top.main.document.write("<html>");
     top.main.document.write("<head>");
     top.main.document.write("<title>채팅방</title>");
     top.main.document.write("<meta http-equiv='Content-Type' content='text/html; charset=EUC_KR'>");
     top.main.document.write("</head>");
     top.main.document.write("<frameset rows='0, 23, 460, *' border='0'>");
     top.main.document.write(" <frame name='none' scrolling='no' marginwidth='0' marginheight='0'>");
     top.main.document.write("    <frame name='topmenu' scrolling='no' marginwidth='0' marginheight='0'>");
     top.main.document.write("    <frameset cols='*, 167' border='0'>");
     top.main.document.write("     <frameset rows='24, *' border='0'>");
     top.main.document.write("      <frame name='title' src='./title.php?title=" + escape(pTitle) + "' scrolling='no' marginwidth='0' marginheight='0'>");
     top.main.document.write("      <frame src='./wait.php' name='main' marginwidth='0' marginheight='0'>");
     top.main.document.write("     </frameset>");
     top.main.document.write("     <frame name='list' marginwidth='0' marginheight='0'>");
     top.main.document.write("    </frameset>");
     top.main.document.write(" <frameset cols='110, *' border='0'>");
     top.main.document.write("      <frame name='sendtolist' scrolling='no' marginwidth='0' marginheight='0'>");
     top.main.document.write("      <frame name='input' scrolling='no' marginwidth='0' marginheight='0'>");
     top.main.document.write("    </frameset>");
     top.main.document.write("    <noframes>");
     top.main.document.write("    <body bgcolor='white' text='black' link='blue' vlink='purple' alink='red'>");
     top.main.document.write("    <p>이 페이지를 보려면, 프레임을 볼 수 있는 브라우저가 필요합니다.</p>");
     top.main.document.write("    </body>");
     top.main.document.write("    </noframes>");
     top.main.document.write("</frameset>");
     top.main.document.write("</html>");
     
     top.main.document.close(); 
    }

  • function ExitRoom(pName, pIcon)
    {
     top.main.document.clear(); 
     top.main.document.open();
     top.main.document.write("<html>");
     top.main.document.write("<head>");
     top.main.document.write("<title>채팅방</title>");
     top.main.document.write("<meta http-equiv='Content-Type' content='text/html; charset=EUC_KR'>");
     top.main.document.write("</head>");
     top.main.document.write("<frameset cols='*, 183' border='0'>");
     top.main.document.write(" <frameset rows='70, *' border='0'>");
     top.main.document.write("  <frame name='roomtop' marginwidth='0' marginheight='0'>");
     top.main.document.write("  <frame name='room' scrolling='auto' marginwidth='0' marginheight='0'>");
     top.main.document.write(" </frameset>");
     top.main.document.write(" <frame name='list' scrolling='auto'  marginwidth='0' marginheight='0'>");
     top.main.document.write("    <noframes>");
     top.main.document.write("    <body bgcolor='white' text='black' link='blue' vlink='purple' alink='red'>");
     top.main.document.write("    <p>이 페이지를 보려면, 프레임을 볼 수 있는 브라우저가 필요합니다.</p>");
     top.main.document.write("    </body>");
     top.main.document.write("    </noframes>");
     top.main.document.write("</frameset>");
     top.main.document.write("</html>");
     top.main.document.close(); 
    }

  • function Header()
    {
     top.main.main.document.clear(); 
     top.main.main.document.open();
     top.main.main.document.write("<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>");
     top.main.main.document.write("<style type=\"text/css\">");
     top.main.main.document.write("<!--");
     top.main.main.document.write("TD {font-family: 굴림; font-size: 9pt}");
     top.main.main.document.write("TR {font-family: 굴림; font-size: 9pt}");
     top.main.main.document.write(". {font-family: 굴림; font-size: 9pt}");
     top.main.main.document.write(".col1 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#444444;}");
     top.main.main.document.write(".col2 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#00499C;}");
     top.main.main.document.write(".col3 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#005131;}");
     top.main.main.document.write("a:link {text-decoration:none;color:#000000;}");
     top.main.main.document.write("a:visited {text-decoration:none ;color:#000000}");
     top.main.main.document.write("a:hover {text-decoration ;color:000000;}");
     top.main.main.document.write("-->");
     top.main.main.document.write("</style>");
     top.main.main.document.write("<body leftmargin='3' marginheight='0' marginwidth='0' topmargin='5' rightmargin='3'  oncontextmenu='return false'>");
     top.main.main.document.write("<table width=100%' border='0' cellspacing='0' cellpadding='3'>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td colspan=2 style='line-height: 150%;'>");
     top.main.main.document.write("<font color=black>채팅에티켓을 지킵시다.</font>");
     top.main.main.document.write("<br><b>현재 <font color=red>디자인 수정 + 베타 테스트</font>중입니다</b>");
     top.main.main.document.write("<br>{사과} 요런식으로 양옆에 괄호를 쳐주고 지정된 단어를 치시면 아이콘챗이 가능합니다</b>");
     top.main.main.document.write("</td>");
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>\n");

  • }
  • function WriteFirstHeader()

     top.main.input.location.href = "input.php";
     top.main.topmenu.location.href = "topmenu.php";
     
     Header();
    }

  • function WriteHeader()
    {  
     Header();
     InputFocus();
    }

  • function WriteMessage(Icon, Msg1, Msg2, Backcolor)
    {
     top.main.main.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='3'>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td align=right width=27 bgcolor='<? echo $GLOBAL_VAR[write_bgbolor]; ?>'><img src=<? echo $GLOBAL_VAR[server_url]; ?>/images/charactor/" + Icon + "></td>");
     top.main.main.document.write("<td align=right width=100 bgcolor='<? echo $GLOBAL_VAR[write_bgbolor]; ?>'>");
     top.main.main.document.write("<font color='<? echo $GLOBAL_VAR[write_textbolor]; ?>'>" + Msg1 + "</font>");
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td align=right width=10 bgcolor='<? echo $GLOBAL_VAR[write_bgbolor]; ?>'><b>");
     top.main.main.document.write("</b><? echo $GLOBAL_VAR[write_sep]; ?></td>");
     top.main.main.document.write("<td align=left bgcolor='" + Backcolor + "' style='word-break:break-all'>");
     top.main.main.document.write(str_replace(Msg2));
     top.main.main.document.write("</td>");
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>");
     SetScroll();
    }

  • function WriteSelfMessage(Icon, Msg1, Msg2, Backcolor)
    {
     top.main.main.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='3'>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td align=right width=27 bgcolor='<? echo $GLOBAL_VAR[selfwrite_bgbolor]; ?>'><img src=<? echo $GLOBAL_VAR[server_url]; ?>/images/charactor/" + Icon + "></td>");
     top.main.main.document.write("<td align=right width=100 bgcolor='<? echo $GLOBAL_VAR[selfwrite_bgbolor]; ?>'><b>");
     top.main.main.document.write("<font color='<? echo $GLOBAL_VAR[selfwrite_textbolor]; ?>'>" + Msg1 + "</font>");
     top.main.main.document.write("</b></td>");
     top.main.main.document.write("<td align=right width=10 bgcolor='<? echo $GLOBAL_VAR[selfwrite_bgbolor]; ?>'><b>");
     top.main.main.document.write("</b><? echo $GLOBAL_VAR[selfwrite_sep]; ?></td>");
     top.main.main.document.write("<td align=left bgcolor='" + Backcolor + "' style='word-break:break-all'>");
     top.main.main.document.write(str_replace(Msg2));
     top.main.main.document.write("</td>");
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>");
     SetScroll();
    }

  • function WriteMessageTo(Icon, Msg1, Msg2, Backcolor)

     top.main.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='3'>");
     top.main.document.write("<tr>");
     top.main.document.write("<td align=right width=27 bgcolor='<? echo $GLOBAL_VAR[write_bgbolor]; ?>'><img src=<? echo $GLOBAL_VAR[server_url]; ?>/images/charactor/" + Icon + ".gif></td>");
     top.main.document.write("<td align=right width=100 bgcolor='<? echo $GLOBAL_VAR[write_bgbolor]; ?>'>");
     top.main.document.write("<font color='<? echo $GLOBAL_VAR[write_textbolor]; ?>'>" + Msg1 + "</font>");
     top.main.document.write("</td>");
     top.main.document.write("<td align=right width=10 bgcolor='<? echo $GLOBAL_VAR[write_bgbolor]; ?>'><b>");
     top.main.document.write("</b><? echo $GLOBAL_VAR[write_sep]; ?></td>");
     top.main.document.write("<td align=left bgcolor='" + Backcolor + "' style='word-break:break-all'>");
     top.main.document.write(str_replace(Msg2));
     top.main.document.write("</td>");
     top.main.document.write("</tr>");
     top.main.document.write("</table>");
     SetScroll();
    }

  • function WriteMusic(pName, pIcon, pMsg)
    {
     var filename = "<? echo $GLOBAL_VAR[server_url]; ?>/upload/"  + unescape(pMsg);
     WriteNotify("<embed src="+ filename +"><p>");
     WriteIconNotify("", pName, pIcon, "님이 음악을 틉니다");
     SetScroll();
    }

  • function WriteMemo(id, name, icon, str)
    {
     window.open("menu/memo_receive.php?memoid=" + id + "&memoname=" + escape(name) + "&memoicon=" + icon + "&memomsg=" + escape(str_replace(str)), "", 'width=310,height=280,resizable=no,scrollbars=no');
    }

  • function WriteIntroduce(pMsg)
    {
     top.main.main.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='3'>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td align=right width=27>");
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td align=right width=100>");
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td align=right width=10>");
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td align=left>");
     top.main.main.document.write(str_replace(pMsg));
     top.main.main.document.write("</td>");
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>");
     SetScroll();
    }

  • function WriteNotify(Msg1)
    {
     top.main.main.document.write("<table border='0' cellspacing='0' cellpadding='3'>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td width=125>&nbsp;");
     top.main.main.document.write("</td>"); 
     top.main.main.document.write("<td>"); 
     top.main.main.document.write(Msg1);
     top.main.main.document.write("</td>");
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>");
     SetScroll();
    }

  • function WriteChangeTitle(pTitle)
    {
     top.title.location.href = "title.php?title=" + pTitle;
     WriteNotify("<font color=blue><b>대화방 제목이 변경되었습니다</b></font>");
    }

  • function SetScroll()
    {
     top.main.main.scrollBy(0, top.main.main.document.body.scrollHeight);
    }

  • function WriteUserList(pId, pName, pIcon)
    {
     top.main.list.document.write("<tr>");
     top.main.list.document.write(" <td colspan=2 align='center'><img src='images/jumsun1.gif' width='154' height='1' border='0' ></td>");
     top.main.list.document.write("</tr>");
     top.main.list.document.write("<tr>");
     top.main.list.document.write(" <td width='35%' height='30' align='center'><a href='#' onClick=\"return top.ChatApplet.UserInfo('" + pId + "', '" + pName + "', '" + pIcon + "')\"><img src=images/charactor/" + pIcon + ".gif border=0></a></td>");
     
    <?
     if ($GLOBAL_VAR[self_memo])
     {
    ?>
     top.main.list.document.write(" <td><a href='#' onClick=\"return top.ChatApplet.MemoSend('" + pId + "', '" + pName + "', '" + pIcon + "')\"><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>" + pName + "</td></a>");
    <?
     }
     else
     {
    ?>
     //if (pId == top.ChatApplet.global_form.userid.value)
     // top.main.list.document.write(" <td><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>" + pName + "</td>");
     //else
      top.main.list.document.write(" <td><a href='#' onClick=\"return top.ChatApplet.MemoSend('" + pId + "', '" + pName + "', '" + pIcon + "')\"><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>" + pName + "</td></a>");
    <?
     }
    ?>
     
     top.main.list.document.write("</tr>");
    }

  • function WriteSendList(pId, pName, pIcon)
    {
     top.main.sendtolist.document.write("<option value='" + pId + "'>" + pName + "</option>");
    }

  • function WriteUserListStart(pCount)
    {
     top.main.list.document.clear(); 
     top.main.list.document.open(); 
     
     top.main.list.document.write("<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>");
     top.main.list.document.write("<style type=\"text/css\">");
     top.main.list.document.write("<!--");
     top.main.list.document.write("TD {font-family: 굴림; font-size: 9pt; line-height: 150%}");
     top.main.list.document.write("TR {font-family: 굴림; font-size: 9pt; line-height: 150%}");
     top.main.list.document.write(". {font-family: 굴림; font-size: 9pt; line-height: 120%;}");
     top.main.list.document.write(".col1 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#444444;}");
     top.main.list.document.write(".col2 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#00499C;}");
     top.main.list.document.write(".col3 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#005131;}");
     top.main.list.document.write("a:link {text-decoration:none;color:#000000;}");
     top.main.list.document.write("a:visited {text-decoration:none ;color:#000000}");
     top.main.list.document.write("a:hover {text-decoration ;color:000000;}");
     top.main.list.document.write("-->");
     top.main.list.document.write("</style>");
     top.main.list.document.write("<body leftmargin='0' marginheight='0' marginwidth='0' topmargin='0' rightmargin='0'  oncontextmenu='return false'>");
     top.main.list.document.write("<table width='167' height=460 border='0' align='center'  cellspacing='0' cellpadding='0' bgcolor='<? echo $GLOBAL_VAR[list_bgcolor]; ?>'>");
     top.main.list.document.write("<tr><td valign=top>");
     top.main.list.document.write("<table width='167' border='0' align='center'  cellspacing='0' cellpadding='0' bgcolor='<? echo $GLOBAL_VAR[list_bgcolor]; ?>'>");
     top.main.list.document.write(" <tr>");
     top.main.list.document.write("  <td colspan=2 height='30' align='right'><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>참가자 " + pCount + "명&nbsp;&nbsp;</font></td>");
     top.main.list.document.write(" </tr>");
     
     top.main.sendtolist.document.clear(); 
     top.main.sendtolist.document.open(); 
     
     top.main.sendtolist.document.write("<style type=\"text/css\">");
     top.main.sendtolist.document.write("<!--");
     top.main.sendtolist.document.write("TD {font-family: \"굴림\"; font-size: 9pt; line-height: 150%}");
     top.main.sendtolist.document.write("TR {font-family: \"굴림\"; font-size: 9pt; line-height: 150%}");
     top.main.sendtolist.document.write(". {font-family: \"굴림\"; font-size: 9pt; line-height: 120%;}");
     top.main.sendtolist.document.write(".input {font-family: \"굴림\"; font-size: 9pt; line-height: 120%;}");
     top.main.sendtolist.document.write("input {font-family: \"굴림\"; font-size: 9pt; line-height: 120%;}");
     top.main.sendtolist.document.write(".col1 {font-family: \"굴림\"; font-size: 9pt; line-height: 150%;color:\"#444444\";}");
     top.main.sendtolist.document.write(".col2 {font-family: \"굴림\"; font-size: 9pt; line-height: 150%;color:\"#00499C\";}");
     top.main.sendtolist.document.write(".col3 {font-family: \"굴림\"; font-size: 9pt; line-height: 150%;color:\"#005131\";}");
     top.main.sendtolist.document.write("a:link {text-decoration:none;color:\"#000000\";}");
     top.main.sendtolist.document.write("a:visited {text-decoration:none ;color:\"#000000\"}");
     top.main.sendtolist.document.write("a:hover {text-decoration ;color:\"000000\";}");
     top.main.sendtolist.document.write("-->");
     top.main.sendtolist.document.write("</style>");
     top.main.sendtolist.document.write("<body leftmargin='0' marginheight='0' marginwidth='0' topmargin='0' rightmargin='0'  oncontextmenu='return false'>");
     
     top.main.sendtolist.document.write("<table width='100%' bgcolor='<? echo $GLOBAL_VAR[bgcolor]; ?>' border='0' cellspacing='0' cellpadding='0'>"); 
     top.main.sendtolist.document.write("<tr>");
     top.main.sendtolist.document.write(" <td height=1 bgcolor=black></td>");
     top.main.sendtolist.document.write("</tr>");
     top.main.sendtolist.document.write("</table>");
     top.main.sendtolist.document.write("<table width='100%' bgcolor='<? echo $GLOBAL_VAR[bgcolor]; ?>' border='0' cellspacing='0' cellpadding='0'>");   
     top.main.sendtolist.document.write("  <tr height=29>");
     top.main.sendtolist.document.write("   <td width='110' align='center'>");
     top.main.sendtolist.document.write("    <form name='input_form' target=none>");
     top.main.sendtolist.document.write("    <select name=userlist class=input  onChange='top.ChatApplet.InputFocus()'>");
     top.main.sendtolist.document.write("    <option value='all'>==모두에게==</option>");

  • }
  • function MemoSend(pToid, pToName, pToIcon)
    {
     window.open("menu/memo_send.php?toid=" + pToid + "&toname=" + escape(pToName) + "&toicon=" + pToIcon, "", 'width=310,height=280,resizable=no,scrollbars=no');
     
     return false;
    }

  • function UserInfo(pToid, pToName, pToIcon)
    {
     window.open("menu/userinfo.php?toid=" + pToid + "&toname=" + escape(pToName) + "&toicon=" + pToIcon, "", 'width=310,height=360,resizable=no,scrollbars=no');
     
     return false;
    }


  • function WriteUserListEnd()

     top.main.list.document.write(" </table>");
     top.main.list.document.write("</td></tr></table>\n");
     top.main.list.document.close();
     
     top.main.sendtolist.document.write(" </select>");
     top.main.sendtolist.document.write("  </table>");   
     top.main.sendtolist.document.write("   </td>");   
     top.main.sendtolist.document.write("   </form>");   
     top.main.sendtolist.document.write("  </tr>");  
     top.main.sendtolist.document.write("</table>");
     top.main.sendtolist.document.write("<script>");
     top.main.sendtolist.document.close();
     
     InputFocus();
    }

  • function WriteWait()
    {
     top.main.main.document.clear(); 
     top.main.main.document.open(); 
     top.main.main.document.write("<STYLE TYPE='text/css'>");
     top.main.main.document.write("none {COLOR: #975400; FONT-FAMILY: 굴림; TEXT-DECORATION: none}");
     top.main.main.document.write("TH {COLOR: #000000; FONT-FAMILY: 굴림; TEXT-DECORATION: none}");
     top.main.main.document.write("TD {COLOR: #000000; FONT-FAMILY: 굴림; TEXT-DECORATION: none}");
     top.main.main.document.write("</STYLE>");
     top.main.main.document.write("<table width=100%' border='1' cellspacing='0' cellpadding='3' bgcolor=#666666>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td colspan=2 align=center valign=middle>"); 
     top.main.main.document.write("서버에 접속대기중입니다.");
     top.main.main.document.write("</td>");
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>");
     top.main.main.document.close();
    }

  • function JoinUser(pName, pIcon)
    {
     WriteNotify("<font color=blue><b>" + pName + " 님께서 들어오셨습니다</b></font>");
    }

  • function WriteChangeName(pOldName, pOldIcon, pName, pIcon)
    {
     top.main.main.document.write("<table border='0' cellspacing='0' cellpadding='3'>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td width=100>&nbsp;");
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td><img src=<? echo $GLOBAL_VAR[server_url]; ?>/images/charactor/" + pOldIcon + ".gif></td>");
     top.main.main.document.write("<td>");  
     top.main.main.document.write("<b><font color=blue>" + pOldName + "</font></b>");  
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td>");  
     top.main.main.document.write("<b><font color=blue>님이</font></b>&nbsp;");  
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td><img src=<? echo $GLOBAL_VAR[server_url]; ?>/images/charactor/" + pIcon + ".gif></td>");
     top.main.main.document.write("<td>");  
     top.main.main.document.write("<b><font color=blue>" + pName + "</font></b>");  
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td>");  
     top.main.main.document.write("<b><font color=blue>님으로 대화명을 변경하셨습니다</font></b>");  
     top.main.main.document.write("</td>");
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>");
     SetScroll();
    }

  • function WriteHelp()
    {
     top.main.main.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='3'>"); 
     top.main.main.document.write("<td bgcolor=#ffeeee colspan=8>");
     top.main.main.document.write("<table  border='0' cellspacing='0' cellpadding='0'><tr><td><img src='images/help.gif'></td><td>&nbsp;<b>도움말</b></td></tr></table>");
     top.main.main.document.write("</td>"); 
     top.main.main.document.write("</tr>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td><font color='#999999'>/introduce</font></td>");
     top.main.main.document.write("<td><font color='#999999'>내소개</font></font></td>");
     top.main.main.document.write("<td><font color='#999999'>/change</td>");
     top.main.main.document.write("<td><font color='#999999'>대화명변경</font></td>");
     top.main.main.document.write("<td><font color='#999999'>/capture</font></td>");
     top.main.main.document.write("<td><font color='#999999'>갈무리</font></td>");
     top.main.main.document.write("<td><font color='#999999'>/master</font></td>");
     top.main.main.document.write("<td><font color='#999999'>방장메뉴</font></td>"); 
     top.main.main.document.write("</tr>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td><font color='#999999'>/clear</font></td>");
     top.main.main.document.write("<td><font color='#999999'>화면정리</font></td>");
     top.main.main.document.write("<td><font color='#999999'>/help</font></td>");
     top.main.main.document.write("<td><font color='#999999'>도움말</font></td>");
     top.main.main.document.write("<td><font color='#999999'>/exit, /quit</font></td>");
     top.main.main.document.write("<td><font color='#999999'>종료</font></td>");
     top.main.main.document.write("<td>&nbsp;</td>");
     top.main.main.document.write("<td>&nbsp;</td>"); 
     top.main.main.document.write("</tr>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<tdcolspan=8>&nbsp;");
     top.main.main.document.write("</td>"); 
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>"); 
     SetScroll();
     
     InputFocus();
    }

  • function WriteGoout()
    {
     alert("강퇴 당했습니다");
    }


  • function ExitUser(pUserId, pUserName)
    {
     WriteNotify("<font color=blue><b>" + pUserName + " 님이 나가셨습니다</b></font>"); 
    }

  • function InputFocus()

     try
     {
      top.main.input.document.input_form.input.focus();
     }
     catch(e)
     {
     }
     /*
     if (top)
      if (top.main)
       if (top.main.input)
        if (top.main.input.document.input_form)
         if (top.main.input.document.input_form.input)
          if (top.main.input.document.input_form.input.disabled != true)
           top.main.input.document.input_form.input.focus();
     */
    }


  • function GoRoomList()
    {
     var chatname;
     var icon;
     var userid;
     
     userid  = top.ChatApplet.global_form.userid.value;
     chatname = top.ChatApplet.global_form.chatname.value;
     icon  = top.ChatApplet.global_form.icon.value;
     
     top.location.href = "roomlist.php?chatuserid=" + userid + "&chatname=" + chatname + "&icon=" + icon;
    }

  • function ChangeMaster(pName, pIcon)
    {
     WriteIconNotify("방장이", pName, pIcon, "님으로 변경되었습니다");
    }

  • function WriteJoin(pName, pIcon)
    {
     WriteIconNotify("", pName, pIcon, "님이 입장하셨습니다");
    }

  • function WriteExit(pName, pIcon)
    {
     WriteIconNotify("", pName, pIcon, "님이 퇴장하셨습니다");
    }

  • function WriteGooutExit(pName, pIcon)
    {
     WriteIconNotify("", pName, pIcon, "님이 강제퇴장되었습니다");
    }

  • function WriteIconNotify(pFirst, pName, pIcon, pLast)
    {
     top.main.main.document.write("<table border='0' cellspacing='0' cellpadding='3'>");
     top.main.main.document.write("<tr>");
     top.main.main.document.write("<td width=100>&nbsp;");
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td>");  
     top.main.main.document.write("<b><font color=blue>" + pFirst + "</font></b>&nbsp;");  
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td><img src=<? echo $GLOBAL_VAR[server_url]; ?>/images/charactor/" + pIcon + ".gif></td>");
     top.main.main.document.write("<td>");  
     top.main.main.document.write("<b><font color=blue>" + pName + "</font></b>");  
     top.main.main.document.write("</td>");
     top.main.main.document.write("<td>");  
     top.main.main.document.write("<b><font color=blue>" + pLast + "</font></b>");  
     top.main.main.document.write("</td>");
     top.main.main.document.write("</tr>");
     top.main.main.document.write("</table>");
     SetScroll();
    }

  • function WriteGetMaster()
    {
     WriteNotify("<font color=blue><b>방장권한을 얻었습니다</b></font>");
    }

  • function WriteLostMaster()
    {
     WriteNotify("<font color=blue><b>방장권한을 잃었습니다</b></font>");
    }

  • function WriteChangeMaster(pName, pIcon)
    {
     WriteIconNotify("", pName, pIcon, "님이 방장이 되었습니다");
    }

  • function NotRoom()
    {
     alert('없어진 방입니다');
     GoRoomList();
    }

  • function LoginCheck()
    {
     alert('이미 입장된 아이디입니다');
     GoRoomList();
    }

  • function SetRoomid(pUserId, pRoomId, pRoomName)
    {
     if (pRoomId < 0)
     {
      alert('방정원을 초과해서 입장할 수 없습니다');
      GoRoomList();
     }
     else
     {
      top.ChatApplet.global_form.roomid.value = pRoomId;
      top.title.location.href = "title.php?title=" + escape(pRoomName);
     }
    }

  • function str_replace(pStr)
    {
     //var token;
     //var strItem;
     var i;
     //var j;
     //var strResult;
     var strTemp;
     var strItem;
     //var strTempResult;
     //var strInnerTemp;
     
     i = 0;
     
     pStr = unescape(pStr);
     
     //for(; pStr.indexOf("<") != -1; )
        //    pStr = pStr.replace("<","&lt;")
           
        //for(; pStr.indexOf(">") != -1; )
        //    pStr = pStr.replace(">","&gt;")
       
        // 욕설 변환 부분
     var badArray = new Array(<? echo $badarray_str; ?>);
     
     for (i = 0; i < badArray.length; i++)
     {
      for(; pStr.indexOf(badArray[i]) != -1; )
          pStr = pStr.replace(badArray[i],"<? echo $GLOBAL_VAR[bad]; ?>");
     }
     
      // 아이콘 변환 부분
     var picArray = new Array(<? echo $picarray_str; ?>);
     
     for (i = 0; i < picArray.length; i++)
     {
      strItem = "{" + picArray[i] + "}";
      for(; pStr.indexOf(strItem) != -1; )
      {
       strTemp = escape(picArray[i])
       for(; strTemp.indexOf("%") != -1; )
       {
              strTemp = strTemp.replace("%","")
          }
          pStr = pStr.replace(strItem, "<img src=<? echo $GLOBAL_VAR[server_url]; ?>/images/icon/" + strTemp + ".gif>");
         }
     }
     
     /*
     i = 0;
     strItem = pStr.split("{");

  •  for(token in strItem)
     {
      if (i > 0)
      {
       strTemp =  strItem[i].split("}")
       
       j = 0;
       strTempResult = "";
       
       for(in_token in strTemp)
       {
        if (j > 0)
        {
         strTempResult += strTemp[j];
        }
        else
        {
         strTemp[j] = escape(strTemp[j])
         for(; strTemp[j].indexOf("%") != -1; )
         {
                strTemp[j] = strTemp[j].replace("%","")
            }

  •      strTempResult += "<img src=<? echo $GLOBAL_VAR[server_url]; ?>/images/icon/" + strTemp[j] + ".gif>";
        }
        j++;
       }
       
       if (j <= 1)
        strResult += strItem[i];
       else
        strResult += strTempResult;
       
      }
      else
      {
       strResult = strItem[i];
      }
      
      i++;
      
     }
     
     return strResult;
     
     */
     
     return pStr;
    }


  • function WriteWaitUsersList(pId, pName, pIcon)
    {
     top.main.list.document.write("<tr>");
     top.main.list.document.write(" <td colspan=2 align='center'><img src='images/jumsun1.gif' width='154' height='1' border='0' ></td>");
     top.main.list.document.write("</tr>");
     top.main.list.document.write("<tr>");
     top.main.list.document.write(" <td width='35%' height='30' align='center'><a href='#' onClick=\"return top.ChatApplet.UserInfo('" + pId + "', '" + pName + "', '" + pIcon + "')\"><img src=images/charactor/" + pIcon + ".gif border=0></a></td>");
     
     top.main.list.document.write(" <td><a href='#' onClick=\"return top.ChatApplet.MemoSend('" + pId + "', '" + pName + "', '" + pIcon + "')\"><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>" + pName + "</td></a>");

  •  top.main.list.document.write("</tr>");
    }

  • function WriteWaitUsersListStart(pCount)
    {
     top.main.list.document.clear(); 
     top.main.list.document.open(); 
     
     top.main.list.document.write("<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>");
     top.main.list.document.write("<style type=\"text/css\">");
     top.main.list.document.write("<!--");
     top.main.list.document.write("TD {font-family: 굴림; font-size: 9pt; line-height: 150%}");
     top.main.list.document.write("TR {font-family: 굴림; font-size: 9pt; line-height: 150%}");
     top.main.list.document.write(". {font-family: 굴림; font-size: 9pt; line-height: 120%;}");
     top.main.list.document.write(".col1 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#444444;}");
     top.main.list.document.write(".col2 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#00499C;}");
     top.main.list.document.write(".col3 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#005131;}");
     top.main.list.document.write("a:link {text-decoration:none;color:#000000;}");
     top.main.list.document.write("a:visited {text-decoration:none ;color:#000000}");
     top.main.list.document.write("a:hover {text-decoration ;color:000000;}");
     top.main.list.document.write("-->");
     top.main.list.document.write("</style>");
     top.main.list.document.write("<body bgcolor='<? echo $GLOBAL_VAR[list_bgcolor]; ?>' leftmargin='0' marginheight='0' marginwidth='0' topmargin='0' rightmargin='0'  oncontextmenu='return false'>");
     top.main.list.document.write("<table width='100%' height=100% border='0' align='center'  cellspacing='0' cellpadding='0' bgcolor='<? echo $GLOBAL_VAR[list_bgcolor]; ?>'>");
     top.main.list.document.write("<tr><td valign=top>");
     top.main.list.document.write("<table width='167' border='0' align='center'  cellspacing='0' cellpadding='0' bgcolor='<? echo $GLOBAL_VAR[list_bgcolor]; ?>'>");
     top.main.list.document.write(" <tr>");
     top.main.list.document.write("  <td colspan=2 height='30' align='right'><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>참가자 " + pCount + "명&nbsp;&nbsp;</font></td>");
     top.main.list.document.write(" </tr>");
     
    }

  • function WriteWaitUsersListEnd()

     top.main.list.document.write(" </table>");
     top.main.list.document.write("</td></tr></table>\n");
     top.main.list.document.close();
     
    }

  • function SendJoinRoom(pRoomid)
    {
     top.ChatApplet.chat.SendJoinRoom(pRoomid);
    }

  • function SendJoinSecretRoom(pRoomid, pPassword)
    {
     top.ChatApplet.chat.SendJoinSecretRoom(pRoomid, pPassword);
    }

  • function OpenSecretRoom(pRoomid)
    {
     var chatid = top.ChatApplet.chat.GetUserid();
     var chatname = top.ChatApplet.chat.GetName();
     var chaticon = top.ChatApplet.chat.GetIcon();
     
     window.open("roompass.php?roomid=" + pRoomid + "&chatuserid=" + chatid + "&chatname=" + chatname + "&chaticon=" + chaticon, "", 'width=310,height=280,resizable=no,scrollbars=no')
    }

  • function WriteRoomList(pNo, pRoomid, pRoomname, pRoomlimit, pRoomtype, pRoompass, pRoomgroup, pRoomusersize)
    {
     var strRoomtype;
     
     if (pRoomtype == "1")
      strRoomtype = "공개";
     else
      strRoomtype = "비공개";
      
     top.main.room.document.write("<tr bgcolor='#FFFFFF'>");
        top.main.room.document.write("      <td width='7%' height='24' align='center'>" + pNo + "</td>");
       
        if (pRoomusersize >= pRoomlimit)
        {
         top.main.room.document.write("      <td width='66%' height='24' align='left'>&nbsp;<a href='javascript:alert(\"정원이 다 찼습니다\");'>" + pRoomname + "</a>");
     }
     else
     {
         if (pRoomtype == "1")
          top.main.room.document.write("      <td width='66%' height='24' align='left'>&nbsp;<a href='javascript:top.ChatApplet.SendJoinRoom(\"" + pRoomid + "\");'>" + pRoomname + "</a>");
         else
          top.main.room.document.write("      <td width='66%' height='24' align='left'>&nbsp;<a href='javascript:top.ChatApplet.OpenSecretRoom(\"" + pRoomid + "\");'>" + pRoomname + "</a>");
     }
     
        top.main.room.document.write("      </td>");
        top.main.room.document.write("      <td width='16%' height='24' align='center'>" + strRoomtype + "</td>");
        top.main.room.document.write("      <td height='24' align='center' width='11%'>" + pRoomusersize + " / " + pRoomlimit + "</td>");
        top.main.room.document.write("    </tr>");
    }

  • function WriteRoomListStart(pCount)
    {
     var chatid = top.ChatApplet.chat.GetUserid();
     var chatname = top.ChatApplet.chat.GetName();
     var chaticon = top.ChatApplet.chat.GetIcon();
     
     top.main.roomtop.location.href = "roomlisttop.php?chatname=" + escape(chatname) + "&icon=" + chaticon;
     
     top.main.room.document.clear(); 
     top.main.room.document.open(); 
     
     top.main.room.document.write("<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>");
     top.main.room.document.write("<style type=\"text/css\">");
     top.main.room.document.write("<!--");
     top.main.room.document.write("TD {font-family: 굴림; font-size: 9pt; line-height: 150%}");
     top.main.room.document.write("TR {font-family: 굴림; font-size: 9pt; line-height: 150%}");
     top.main.room.document.write(". {font-family: 굴림; font-size: 9pt; line-height: 120%;}");
     top.main.room.document.write(".col1 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#444444;}");
     top.main.room.document.write(".col2 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#00499C;}");
     top.main.room.document.write(".col3 {font-family: 굴림; font-size: 9pt; line-height: 150%;color:#005131;}");
     top.main.room.document.write("a:link {text-decoration:none;color:#000000;}");
     top.main.room.document.write("a:visited {text-decoration:none ;color:#000000}");
     top.main.room.document.write("a:hover {text-decoration ;color:000000;}");
     top.main.room.document.write("-->");
     top.main.room.document.write("</style>");
     top.main.room.document.write("<body leftmargin='0' marginheight='0' marginwidth='0' topmargin='0' rightmargin='0'  oncontextmenu='return false'>");
     
     top.main.room.document.write("<table align=center width='96%' border='0' cellspacing='1' cellpadding='0' bgcolor='<? echo $GLOBAL_VAR[bgcolor]; ?>'>");
        top.main.room.document.write("    <tr bgcolor='<? echo $GLOBAL_VAR[list_bgcolor]; ?>'>");
        top.main.room.document.write("      <td width='7%' height='20' align='center'><b><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>순번</font></b></td>");
        top.main.room.document.write("      <td width='66%' height='20' align='center'><b><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>대화방-주제</font></b></td>");
        top.main.room.document.write("      <td width='16%'  height='20' align='center'><b><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>공개여부</font></b></td>");
        top.main.room.document.write("      <td align='center' height='20' width='11%' ><b><font color='<? echo $GLOBAL_VAR[list_textcolor]; ?>'>인원</font></b></td>");
        top.main.room.document.write("    </tr>");
           
    }

  • function WriteRoomListEnd()

     top.main.room.document.write("</table>");
     top.main.room.document.close();
     
    }

  • ExitRoom("<? echo $chatname; ?>", "<? echo $icon; ?>");
  • </script>
    <applet code="Client.class" MAYSCRIPT codebase="applet" width=100 height=100 name='chat'>
    <param name=name value='<? echo("$chatname"); ?>'>
    <param name=userid value='<? echo("$chatuserid"); ?>'>
    <param name=icon value='<? echo("$icon"); ?>'>
    <param name=serverurl value='<? echo $GLOBAL_VAR[server_url]; ?>'>
    <param name=PORT value='<? echo $GLOBAL_VAR[server_port]; ?>'>
    </applet>
    <object classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 height='45' id=player name=player type=application/x-oleobject width='320'>
    <param name='AutoStart' value='0'>
    </object>
    </body>
    </html>
댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
제목 작성자 날짜
공대여자
mins
공대여자
황제킹
kim3339
몬스터에이
헬프
헬프
쿠쿠
kdh8219
눈나
고졸형님