제로보드및 타보드에서 이모티콘 출력방법(요청에 의하여)^^
- 11-11
- 9,498 회
- 18 건
안녕하세요.^^
제로보드및 타보드에서 이모티콘을 출력하는 방법을 문의 하시는 분이 몇분 계시길래 제가 적용한 방법을 참고하여 올려 드립니다. 참고로 이글의 원문은 닉네임: kaja 님의 팁을 토대로 수정을 해본 것입니다. 원문내용: <A HREF="http://211.234.124.12/~prince/kchat/board/zboard.php?id=tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=34" TARGET="_blank" rel="nofollow">http://211.234.124.12/~prince/kchat/board/zboard.php?id=tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=34</A>
위의 원본에있는 emo.php 화일을은 조금 수정을 하여 현재 챗방의 가로비율로 맞게 수정을 하였습니다.
이모티콘 출력하기 수정방법
1, 먼저 zb_emotikon.zip파일을 압축을 풀어서 emo.php파일과 emoticon폴더를
챗트폴더 안에 올립니다. ex) 홈주소/채트폴더/
2, 챗트폴더/skin/각스킨폴더/room.php 를 열어서 아래와 같이 수정합니다.
아래내용은 room.php 소스에서 중간부부쯤 폼 태그가 끝나고나서 적용합니다.
</form> <!--폼태그 마지막 여기를 찾으신후 수정합니다.-->
<TR>
<TD width=12><IMG SRC="skin/homebox00/images/homebox_chat_32.gif" HEIGHT=6></TD>
<TD width=54><IMG SRC="skin/homebox00/images/homebox_chat_33.gif" HEIGHT=6></TD>
<TD width=68 COLSPAN=2><IMG SRC="skin/homebox00/images/homebox_chat_34.gif" HEIGHT=6></TD>
<TD width=100% background="skin/homebox00/images/homebox_chat_35.gif"><IMG SRC="" HEIGHT=6></TD>
<TD width=53><IMG SRC="skin/homebox00/images/homebox_chat_36.gif" HEIGHT=6></TD>
<TD width=16><IMG SRC="skin/homebox00/images/homebox_chat_37.gif" HEIGHT=6></TD>
<TD width=16><IMG SRC="skin/homebox00/images/homebox_chat_38.gif" HEIGHT=6></TD>
<TD width=136><IMG SRC="skin/homebox00/images/homebox_chat_39.gif" HEIGHT=6></TD>
<TD width=13><IMG SRC="skin/homebox00/images/homebox_chat_40.gif" HEIGHT=6></TD>
</TR>
<!-- 여기서부터 챗방정리 링크버튼과 이모티콘 출력을 적용 합니다.-->
<TABLE width="600" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<TR>
<TD><div align=center><a href="#" onclick="parent.chatview.document.body.innerHTML='';"><b>☞ 채팅방정리</b></a>
<img src=./emoticon/i_emoticons.gif align=absmiddle border=0> <input onclick='showEmoticon()' type=checkbox name=Emoticons value='yes'><b>이모티콘 출력</b>
</div>
</TD>
</TR>
<TR>
<TD><? include "../kchat3/emo.php"; ?><!--이모티콘 kchat3은 챗방폴더이름입니다.-->
</TD>
</TR>
<table><!-- 여기까지 이모티콘 출력-->
</TABLE>
<OBJECT id="KChat" ...어쩌고
3, 위의 수정을 마친후 아래와 같이 수정합니다.
아래부분을 찾은후
<SCRIPT>
// 자동링크 기능 - <A HREF="http://phpschool.com/bbs2/inc_view.html?id=9072&code=tnt2" TARGET="_blank" rel="nofollow">http://phpschool.com/bbs2/inc_view.html?id=9072&code=tnt2</A>
function sw_autolink(str)
{
str = String(str);
.....생략
..
.....생략
return str.replace(/___---#Done#Src#---___/g, "");
} //자동링크소스의 마지막부분 이줄 바로아래에 다음소스를 추가 합니다.
//이모티콘
function emoticon_html(str)
{
str=str.replace("emtc_001","<img src=/kchat3/emoticon/1.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_002","<img src=/kchat3/emoticon/2.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_003","<img src=/kchat3/emoticon/3.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_004","<img src=/kchat3/emoticon/4.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_005","<img src=/kchat3/emoticon/5.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_006","<img src=/kchat3/emoticon/6.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_007","<img src=/kchat3/emoticon/7.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_008","<img src=/kchat3/emoticon/8.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_009","<img src=/kchat3/emoticon/9.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_010","<img src=/kchat3/emoticon/10.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_011","<img src=/kchat3/emoticon/11.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_012","<img src=/kchat3/emoticon/12.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_013","<img src=/kchat3/emoticon/13.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_014","<img src=/kchat3/emoticon/14.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_015","<img src=/kchat3/emoticon/15.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_016","<img src=/kchat3/emoticon/16.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_017","<img src=/kchat3/emoticon/17.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_018","<img src=/kchat3/emoticon/18.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_019","<img src=/kchat3/emoticon/19.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_020","<img src=/kchat3/emoticon/20.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_021","<img src=/kchat3/emoticon/21.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_022","<img src=/kchat3/emoticon/22.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_023","<img src=/kchat3/emoticon/23.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_024","<img src=/kchat3/emoticon/24.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_025","<img src=/kchat3/emoticon/25.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_026","<img src=/kchat3/emoticon/26.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_027","<img src=/kchat3/emoticon/27.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_028","<img src=/kchat3/emoticon/28.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_029","<img src=/kchat3/emoticon/29.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_030","<img src=/kchat3/emoticon/30.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_031","<img src=/kchat3/emoticon/31.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_032","<img src=/kchat3/emoticon/32.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_033","<img src=/kchat3/emoticon/33.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_034","<img src=/kchat3/emoticon/34.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_035","<img src=/kchat3/emoticon/35.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_036","<img src=/kchat3/emoticon/36.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_037","<img src=/kchat3/emoticon/37.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_038","<img src=/kchat3/emoticon/38.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_039","<img src=/kchat3/emoticon/39.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_040","<img src=/kchat3/emoticon/40.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_041","<img src=/kchat3/emoticon/41.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_042","<img src=/kchat3/emoticon/42.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_043","<img src=/kchat3/emoticon/43.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_044","<img src=/kchat3/emoticon/44.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_045","<img src=/kchat3/emoticon/45.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_046","<img src=/kchat3/emoticon/46.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_047","<img src=/kchat3/emoticon/47.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_048","<img src=/kchat3/emoticon/48.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_049","<img src=/kchat3/emoticon/49.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_050","<img src=/kchat3/emoticon/50.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_051","<img src=/kchat3/emoticon/51.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_052","<img src=/kchat3/emoticon/52.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_053","<img src=/kchat3/emoticon/53.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_054","<img src=/kchat3/emoticon/54.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_055","<img src=/kchat3/emoticon/55.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_056","<img src=/kchat3/emoticon/56.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_057","<img src=/kchat3/emoticon/57.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_058","<img src=/kchat3/emoticon/58.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_059","<img src=/kchat3/emoticon/59.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_060","<img src=/kchat3/emoticon/60.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_061","<img src=/kchat3/emoticon/61.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_062","<img src=/kchat3/emoticon/62.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_063","<img src=/kchat3/emoticon/63.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_064","<img src=/kchat3/emoticon/64.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_065","<img src=/kchat3/emoticon/65.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_066","<img src=/kchat3/emoticon/66.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_067","<img src=/kchat3/emoticon/67.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_068","<img src=/kchat3/emoticon/68.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_069","<img src=/kchat3/emoticon/69.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_070","<img src=/kchat3/emoticon/70.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_071","<img src=/kchat3/emoticon/71.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_072","<img src=/kchat3/emoticon/72.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_073","<img src=/kchat3/emoticon/73.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_074","<img src=/kchat3/emoticon/74.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_075","<img src=/kchat3/emoticon/75.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_076","<img src=/kchat3/emoticon/76.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_077","<img src=/kchat3/emoticon/77.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_078","<img src=/kchat3/emoticon/78.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_079","<img src=/kchat3/emoticon/79.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_080","<img src=/kchat3/emoticon/80.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_081","<img src=/kchat3/emoticon/81.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_082","<img src=/kchat3/emoticon/82.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_083","<img src=/kchat3/emoticon/83.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_084","<img src=/kchat3/emoticon/84.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_085","<img src=/kchat3/emoticon/85.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_086","<img src=/kchat3/emoticon/86.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_087","<img src=/kchat3/emoticon/87.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_088","<img src=/kchat3/emoticon/88.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_089","<img src=/kchat3/emoticon/89.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_090","<img src=/kchat3/emoticon/90.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_091","<img src=/kchat3/emoticon/91.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_092","<img src=/kchat3/emoticon/92.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_093","<img src=/kchat3/emoticon/93.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_094","<img src=/kchat3/emoticon/94.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_095","<img src=/kchat3/emoticon/95.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_096","<img src=/kchat3/emoticon/96.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_097","<img src=/kchat3/emoticon/97.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_098","<img src=/kchat3/emoticon/98.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_099","<img src=/kchat3/emoticon/99.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_100","<img src=/kchat3/emoticon/100.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_101","<img src=/kchat3/emoticon/101.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_102","<img src=/kchat3/emoticon/102.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_103","<img src=/kchat3/emoticon/103.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_104","<img src=/kchat3/emoticon/104.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_105","<img src=/kchat3/emoticon/105.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_106","<img src=/kchat3/emoticon/106.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_107","<img src=/kchat3/emoticon/107.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_108","<img src=/kchat3/emoticon/108.gif width=18 height=18 border=0>",str);
return str;
}//이모티콘 출력끝
// 채팅 출력부분
function chattext(str,col)
{
str=emoticon_html(str);
str=sw_autolink(str);
chatview.document.body.insertAdjacentHTML('beforeEnd', '<font color='+col+'>'+str+'</font><br>');
chatview.document.body.scrollTop=99999999;
}
// 방제 출력부분
function chgtitle(str)
{
titlename.innerHTML = str;
window.open('user.php?ROOMIP=<? echo $ip; ?>&TEMP='+Math.ceil(Math.random() * 99999999),'userview');
}//수정끝
// 입장,퇴장 체크
참고사항: <img src=/kchat3/emoticon/99.gif 와
<? include "../kchat3/emo.php"; ?>는
kchat3 은 챗방 폴더 이름 입니다.
수정한스킨은 홈박스님의 homebox00 스킨입니다.
제로보드및 타보드에서 이모티콘을 출력하는 방법을 문의 하시는 분이 몇분 계시길래 제가 적용한 방법을 참고하여 올려 드립니다. 참고로 이글의 원문은 닉네임: kaja 님의 팁을 토대로 수정을 해본 것입니다. 원문내용: <A HREF="http://211.234.124.12/~prince/kchat/board/zboard.php?id=tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=34" TARGET="_blank" rel="nofollow">http://211.234.124.12/~prince/kchat/board/zboard.php?id=tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=34</A>
위의 원본에있는 emo.php 화일을은 조금 수정을 하여 현재 챗방의 가로비율로 맞게 수정을 하였습니다.
이모티콘 출력하기 수정방법
1, 먼저 zb_emotikon.zip파일을 압축을 풀어서 emo.php파일과 emoticon폴더를
챗트폴더 안에 올립니다. ex) 홈주소/채트폴더/
2, 챗트폴더/skin/각스킨폴더/room.php 를 열어서 아래와 같이 수정합니다.
아래내용은 room.php 소스에서 중간부부쯤 폼 태그가 끝나고나서 적용합니다.
</form> <!--폼태그 마지막 여기를 찾으신후 수정합니다.-->
<TR>
<TD width=12><IMG SRC="skin/homebox00/images/homebox_chat_32.gif" HEIGHT=6></TD>
<TD width=54><IMG SRC="skin/homebox00/images/homebox_chat_33.gif" HEIGHT=6></TD>
<TD width=68 COLSPAN=2><IMG SRC="skin/homebox00/images/homebox_chat_34.gif" HEIGHT=6></TD>
<TD width=100% background="skin/homebox00/images/homebox_chat_35.gif"><IMG SRC="" HEIGHT=6></TD>
<TD width=53><IMG SRC="skin/homebox00/images/homebox_chat_36.gif" HEIGHT=6></TD>
<TD width=16><IMG SRC="skin/homebox00/images/homebox_chat_37.gif" HEIGHT=6></TD>
<TD width=16><IMG SRC="skin/homebox00/images/homebox_chat_38.gif" HEIGHT=6></TD>
<TD width=136><IMG SRC="skin/homebox00/images/homebox_chat_39.gif" HEIGHT=6></TD>
<TD width=13><IMG SRC="skin/homebox00/images/homebox_chat_40.gif" HEIGHT=6></TD>
</TR>
<!-- 여기서부터 챗방정리 링크버튼과 이모티콘 출력을 적용 합니다.-->
<TABLE width="600" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<TR>
<TD><div align=center><a href="#" onclick="parent.chatview.document.body.innerHTML='';"><b>☞ 채팅방정리</b></a>
<img src=./emoticon/i_emoticons.gif align=absmiddle border=0> <input onclick='showEmoticon()' type=checkbox name=Emoticons value='yes'><b>이모티콘 출력</b>
</div>
</TD>
</TR>
<TR>
<TD><? include "../kchat3/emo.php"; ?><!--이모티콘 kchat3은 챗방폴더이름입니다.-->
</TD>
</TR>
<table><!-- 여기까지 이모티콘 출력-->
</TABLE>
<OBJECT id="KChat" ...어쩌고
3, 위의 수정을 마친후 아래와 같이 수정합니다.
아래부분을 찾은후
<SCRIPT>
// 자동링크 기능 - <A HREF="http://phpschool.com/bbs2/inc_view.html?id=9072&code=tnt2" TARGET="_blank" rel="nofollow">http://phpschool.com/bbs2/inc_view.html?id=9072&code=tnt2</A>
function sw_autolink(str)
{
str = String(str);
.....생략
..
.....생략
return str.replace(/___---#Done#Src#---___/g, "");
} //자동링크소스의 마지막부분 이줄 바로아래에 다음소스를 추가 합니다.
//이모티콘
function emoticon_html(str)
{
str=str.replace("emtc_001","<img src=/kchat3/emoticon/1.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_002","<img src=/kchat3/emoticon/2.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_003","<img src=/kchat3/emoticon/3.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_004","<img src=/kchat3/emoticon/4.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_005","<img src=/kchat3/emoticon/5.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_006","<img src=/kchat3/emoticon/6.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_007","<img src=/kchat3/emoticon/7.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_008","<img src=/kchat3/emoticon/8.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_009","<img src=/kchat3/emoticon/9.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_010","<img src=/kchat3/emoticon/10.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_011","<img src=/kchat3/emoticon/11.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_012","<img src=/kchat3/emoticon/12.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_013","<img src=/kchat3/emoticon/13.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_014","<img src=/kchat3/emoticon/14.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_015","<img src=/kchat3/emoticon/15.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_016","<img src=/kchat3/emoticon/16.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_017","<img src=/kchat3/emoticon/17.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_018","<img src=/kchat3/emoticon/18.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_019","<img src=/kchat3/emoticon/19.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_020","<img src=/kchat3/emoticon/20.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_021","<img src=/kchat3/emoticon/21.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_022","<img src=/kchat3/emoticon/22.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_023","<img src=/kchat3/emoticon/23.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_024","<img src=/kchat3/emoticon/24.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_025","<img src=/kchat3/emoticon/25.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_026","<img src=/kchat3/emoticon/26.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_027","<img src=/kchat3/emoticon/27.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_028","<img src=/kchat3/emoticon/28.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_029","<img src=/kchat3/emoticon/29.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_030","<img src=/kchat3/emoticon/30.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_031","<img src=/kchat3/emoticon/31.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_032","<img src=/kchat3/emoticon/32.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_033","<img src=/kchat3/emoticon/33.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_034","<img src=/kchat3/emoticon/34.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_035","<img src=/kchat3/emoticon/35.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_036","<img src=/kchat3/emoticon/36.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_037","<img src=/kchat3/emoticon/37.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_038","<img src=/kchat3/emoticon/38.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_039","<img src=/kchat3/emoticon/39.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_040","<img src=/kchat3/emoticon/40.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_041","<img src=/kchat3/emoticon/41.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_042","<img src=/kchat3/emoticon/42.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_043","<img src=/kchat3/emoticon/43.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_044","<img src=/kchat3/emoticon/44.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_045","<img src=/kchat3/emoticon/45.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_046","<img src=/kchat3/emoticon/46.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_047","<img src=/kchat3/emoticon/47.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_048","<img src=/kchat3/emoticon/48.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_049","<img src=/kchat3/emoticon/49.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_050","<img src=/kchat3/emoticon/50.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_051","<img src=/kchat3/emoticon/51.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_052","<img src=/kchat3/emoticon/52.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_053","<img src=/kchat3/emoticon/53.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_054","<img src=/kchat3/emoticon/54.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_055","<img src=/kchat3/emoticon/55.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_056","<img src=/kchat3/emoticon/56.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_057","<img src=/kchat3/emoticon/57.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_058","<img src=/kchat3/emoticon/58.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_059","<img src=/kchat3/emoticon/59.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_060","<img src=/kchat3/emoticon/60.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_061","<img src=/kchat3/emoticon/61.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_062","<img src=/kchat3/emoticon/62.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_063","<img src=/kchat3/emoticon/63.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_064","<img src=/kchat3/emoticon/64.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_065","<img src=/kchat3/emoticon/65.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_066","<img src=/kchat3/emoticon/66.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_067","<img src=/kchat3/emoticon/67.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_068","<img src=/kchat3/emoticon/68.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_069","<img src=/kchat3/emoticon/69.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_070","<img src=/kchat3/emoticon/70.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_071","<img src=/kchat3/emoticon/71.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_072","<img src=/kchat3/emoticon/72.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_073","<img src=/kchat3/emoticon/73.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_074","<img src=/kchat3/emoticon/74.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_075","<img src=/kchat3/emoticon/75.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_076","<img src=/kchat3/emoticon/76.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_077","<img src=/kchat3/emoticon/77.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_078","<img src=/kchat3/emoticon/78.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_079","<img src=/kchat3/emoticon/79.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_080","<img src=/kchat3/emoticon/80.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_081","<img src=/kchat3/emoticon/81.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_082","<img src=/kchat3/emoticon/82.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_083","<img src=/kchat3/emoticon/83.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_084","<img src=/kchat3/emoticon/84.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_085","<img src=/kchat3/emoticon/85.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_086","<img src=/kchat3/emoticon/86.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_087","<img src=/kchat3/emoticon/87.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_088","<img src=/kchat3/emoticon/88.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_089","<img src=/kchat3/emoticon/89.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_090","<img src=/kchat3/emoticon/90.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_091","<img src=/kchat3/emoticon/91.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_092","<img src=/kchat3/emoticon/92.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_093","<img src=/kchat3/emoticon/93.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_094","<img src=/kchat3/emoticon/94.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_095","<img src=/kchat3/emoticon/95.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_096","<img src=/kchat3/emoticon/96.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_097","<img src=/kchat3/emoticon/97.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_098","<img src=/kchat3/emoticon/98.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_099","<img src=/kchat3/emoticon/99.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_100","<img src=/kchat3/emoticon/100.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_101","<img src=/kchat3/emoticon/101.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_102","<img src=/kchat3/emoticon/102.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_103","<img src=/kchat3/emoticon/103.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_104","<img src=/kchat3/emoticon/104.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_105","<img src=/kchat3/emoticon/105.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_106","<img src=/kchat3/emoticon/106.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_107","<img src=/kchat3/emoticon/107.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_108","<img src=/kchat3/emoticon/108.gif width=18 height=18 border=0>",str);
return str;
}//이모티콘 출력끝
// 채팅 출력부분
function chattext(str,col)
{
str=emoticon_html(str);
str=sw_autolink(str);
chatview.document.body.insertAdjacentHTML('beforeEnd', '<font color='+col+'>'+str+'</font><br>');
chatview.document.body.scrollTop=99999999;
}
// 방제 출력부분
function chgtitle(str)
{
titlename.innerHTML = str;
window.open('user.php?ROOMIP=<? echo $ip; ?>&TEMP='+Math.ceil(Math.random() * 99999999),'userview');
}//수정끝
// 입장,퇴장 체크
참고사항: <img src=/kchat3/emoticon/99.gif 와
<? include "../kchat3/emo.php"; ?>는
kchat3 은 챗방 폴더 이름 입니다.
수정한스킨은 홈박스님의 homebox00 스킨입니다.
-
-
//emo.php를 올립니다 폴더명은 chat 입니다 경로는 chat아래로 되어 있습니다
<script language=javascript>
function showEmoticon(){
if(Emoticon.style.display=='none'){
Emoticon.style.display='';
}else{
Emoticon.style.display='none';
}
}
function insertSmiley(smiley){
if(document.chat.test.createTextRange){
document.chat.test.focus();
document.selection.createRange().duplicate().text=smiley;
}else{
document.chat.test.value+=smiley;
}
}
</script>
<style>
.on {border:1px solid #6B717B}
.off {border:1px solid white}
.down {border:1px solid #444A54;background-color:efefef}
.up {border:1px solid #6B717B;background-color:white}
.curHand {cursor:hand}
</style>
<div id=Emoticon style="display:none">
<table cellpadding=0 cellspacing=0 border=0>
<tr><td>
<table border=0 cellpadding=3 cellspacing=0 style="background-color:white;border:1px solid #cdcdcd;" align=left>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<col width="19"></col>
<tr>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_001','chat')"><img class="curHand" SRC="../chat/emoticon/1.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_002','chat')"><img class="curHand" SRC="../chat/emoticon/2.gif" width=18 height=18 BORDER=0 > </a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_003','chat')"><img class="curHand" SRC="../chat/emoticon/3.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_004','chat')"><img class="curHand" SRC="../chat/emoticon/4.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_005','chat')"><img class="curHand" SRC="../chat/emoticon/5.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_006','chat')"><img class="curHand" SRC="../chat/emoticon/6.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_007','chat')"><img class="curHand" SRC="../chat/emoticon/7.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_008','chat')"><img class="curHand" SRC="../chat/emoticon/8.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_009','chat')"><img class="curHand" SRC="../chat/emoticon/9.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_010','chat')"><img class="curHand" SRC="../chat/emoticon/10.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_011','chat')"><img class="curHand" SRC="../chat/emoticon/11.gif" width=18 height=18 BORDER=0 ></a></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_012','chat')"><img class="curHand" SRC="../chat/emoticon/12.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_013','chat')"><img class="curHand" SRC="../chat/emoticon/13.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_014','chat')"><img class="curHand" SRC="../chat/emoticon/14.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_015','chat')"><img class="curHand" SRC="../chat/emoticon/15.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_016','chat')"><img class="curHand" SRC="../chat/emoticon/16.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_017','chat')"><img class="curHand" SRC="../chat/emoticon/17.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_018','chat')"><img class="curHand" SRC="../chat/emoticon/18.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_019','chat')"><img class="curHand" SRC="../chat/emoticon/19.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_020','chat')"><img class="curHand" SRC="../chat/emoticon/20.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_021','chat')"><img class="curHand" SRC="../chat/emoticon/21.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_022','chat')"><img class="curHand" SRC="../chat/emoticon/22.gif" width=18 height=18 BORDER=0 ></a ></td>
</tr>
<tr>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_023','chat')"><img class="curHand" SRC="../chat/emoticon/23.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_024','chat')"><img class="curHand" SRC="../chat/emoticon/24.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_025','chat')"><img class="curHand" SRC="../chat/emoticon/25.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_026','chat')"><img class="curHand" SRC="../chat/emoticon/26.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_027','chat')"><img class="curHand" SRC="../chat/emoticon/27.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_028','chat')"><img class="curHand" SRC="../chat/emoticon/28.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_029','chat')"><img class="curHand" SRC="../chat/emoticon/29.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_030','chat')"><img class="curHand" SRC="../chat/emoticon/30.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_031','chat')"><img class="curHand" SRC="../chat/emoticon/31.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_032','chat')"><img class="curHand" SRC="../chat/emoticon/32.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_033','chat')"><img class="curHand" SRC="../chat/emoticon/33.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_034','chat')"><img class="curHand" SRC="../chat/emoticon/34.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_035','chat')"><img class="curHand" SRC="../chat/emoticon/35.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_036','chat')"><img class="curHand" SRC="../chat/emoticon/36.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_037','chat')"><img class="curHand" SRC="../chat/emoticon/37.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_038','chat')"><img class="curHand" SRC="../chat/emoticon/38.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_039','chat')"><img class="curHand" SRC="../chat/emoticon/39.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_040','chat')"><img class="curHand" SRC="../chat/emoticon/40.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_041','chat')"><img class="curHand" SRC="../chat/emoticon/41.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_042','chat')"><img class="curHand" SRC="../chat/emoticon/42.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_043','chat')"><img class="curHand" SRC="../chat/emoticon/43.gif" width=18 height=18 BORDER=0 ></a ></td>
<td class=off onmousedown=this.className='down' onmouseup=this.className='up' onmouseover=this.className='on' onmouseout=this.className='off'><a onclick="insertSmiley('emtc_044','chat')"><img class="curHand" SRC="../chat/emoticon/44.gif" width=18 height=18 BORDER=0 ></a ></td>
</tr>
<tr>
</tr>
</table>
</td></tr>
<tr><td align=right height=22>
</td>
</tr></table>
<br>
</div>- 05-06-28
-
-
-
-
위엣것 해도 안되면
_tailtag.php 문서안에
밑에 그냥 넣으면 잘돌아갑니다~~ ㅋㅋ 이거 3시간만에 발견 ㅋㅋ
<script>KChat.window = window; KChat.SendCMD('start');</script>- 04-02-07
-
-
-
-
혹시 경로때문에 헷갈리는 분이 있을까봐 한 자 적습니다.제가 경로가 달라서 혼란이 왔거든요...루트 디렉토리 바로 아래 kchat3 라는 이름의 디렉토리를 만들고 길호챗을 설치한 경우라면 위의 방법대로 했을 경우 아주 잘 됩니다.
그러나 저는 kilho 라는 이름의 디렉토리에 채팅프로구램을 설치해서 경로가 하나도 맞지 않습니다..당연히 안되지요...게다가 이미지 경로가 모조리 kckat3/emoticon..어쩌구 해서 100개가 넘으니까 그걸 모조리 kilho/..로 바꾸는게 보통 일이 아니라서....
결국 채팅프로구램이 있는 kilho 디렉토리에 다운받은 파일을 올리고 루트 디렉토리 바로 밑에 kchat3 디렉토리를 만들어서 파일을 한 번 더 올렸습니다...그러니까 잘 되는군요...서버 하드는 200키로바이트 정도 낭비한 셈이네요.- 03-11-13
-
-
위의 방법은 챗트폴더 이름이 kchat3 이라고 만든 경우입니다.
다른이름일 경우 kchat3 이부분을 전부 바꾸셔야 합니다.ㅠㅠ
잘안되시는분을 위해서 홈박스님의 homebox00 /room.php 전체를 긁어서 올립니다. 참고하세요^^
room.php 전체소스
<TITLE>채팅방입니다.</TITLE>
<link rel="stylesheet" href="skin/homebox00/css.css">
<TABLE width="600" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<TR>
<TD WIDTH=12><IMG SRC="skin/homebox00/images/homebox_chat_01.gif" WIDTH=12 HEIGHT=41></TD>
<TD WIDTH=100% colspan=5 background="skin/homebox00/images/homebox_chat_03.gif"><table CELLPADDING=0 CELLSPACING=0><tr><td WIDTH=69 HEIGHT=41><IMG SRC="skin/homebox00/images/homebox_chat_02.gif" WIDTH=69 HEIGHT=41></td><td><span id=titlename><font color=RED>제목 읽는중...</font></span></td></tr></table></td>
<TD WIDTH=16><IMG SRC="skin/homebox00/images/homebox_chat_04.gif" WIDTH=16 HEIGHT=41></TD>
<TD WIDTH=16><IMG SRC="skin/homebox00/images/homebox_chat_05.gif" WIDTH=16 HEIGHT=41></TD>
<TD WIDTH=136><IMG SRC="skin/homebox00/images/homebox_chat_06.gif" WIDTH=136 HEIGHT=41></TD>
<TD WIDTH=13><IMG SRC="skin/homebox00/images/homebox_chat_07.gif" WIDTH=13 HEIGHT=41></TD>
</TR>
<TR>
<TD background="skin/homebox00/images/homebox_chat_08.gif"> </TD>
<TD colspan=5 height="330" align="center" valign="middle"><!-- 대화내용 표시될곳 --><iframe frameborder="0" align="center" leftmargin="0" marginwidth="0" marginheight="0" topmargin="0" marginwidth="0" scrolling="yes" src="skin/homebox00/room-bg.php" id=chatview width=100% height=320></iframe></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_10.gif" HEIGHT=330></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_11.gif" HEIGHT=330></TD>
<TD height="330" align="center" valign="middle"><!-- 사용자목록 뿌려줄곳 --><iframe name=userview frameborder="0" align="center" leftmargin="0" marginwidth="0" marginheight="0" topmargin="0" marginwidth="0" src="skin/homebox00/room-bg.php" scrolling="yes" width=128 height=320></iframe></TD>
<TD height="330" background="skin/homebox00/images/homebox_chat_13.gif"> </TD>
</TR>
<TR>
<!-- 채팅입력하는 부분 -->
<TD><IMG SRC="skin/homebox00/images/homebox_chat_14.gif" HEIGHT=7></TD>
<TD height="7" background="skin/homebox00/images/homebox_chat_15.gif"></TD>
<TD background="skin/homebox00/images/homebox_chat_15.gif"></TD>
<TD background="skin/homebox00/images/homebox_chat_15.gif"></TD>
<TD colspan=2 background="skin/homebox00/images/homebox_chat_15.gif"></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_19.gif" HEIGHT=7></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_20.gif" HEIGHT=7></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_21.gif" HEIGHT=7></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_22.gif" HEIGHT=7></TD>
</TR>
<TR>
<form name=chat onsubmit="KChat.SendChat(chat.toid.value,chat.test.value);chat.test.value='';return false;">
<TD height="30" background="skin/homebox00/images/homebox_chat_08.gif"> </TD>
<TD height="30" align="center">
<!-- 색깔부분 <a href=http://211.234.124.12/~prince/kchat/board/view.php?id=tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=16 target=_blank>http://211.234.124.12/~prince/kchat/board/view.php?id=tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=16</a> -->
<select name=colpick onchange="KChat.ChgColor(colpick.value);" style="font-family:돋움,serif; font-size:9px; border-width:1; border-color:rgb(219,219,219); border-style:solid;">
<option style="background-color:000000;color:white" value="#000000"> </option>
<option style="background-color:2f4f4f;color:white" value="#2f4f4f"></option>
<option style="background-color:696969;color:white" value="#696969"></option>
<option style="background-color:808080;color:white" value="#808080"></option>
<option style="background-color:708090;color:white" value="#708090"></option>
<option style="background-color:778899;color:white" value="#778899"></option>
<option style="background-color:a9a9a9;color:white" value="#a9a9a9"></option>
<option style="background-color:c0c0c0" value="#c0c0c0"></option>
<option style="background-color:d3d3d3" value="#d3d3d3"></option>
<option style="background-color:dcdcdc" value="#dcdcdc"></option>
<option style="background-color:ffffff" value="#ffffff"></option>
<option style="background-color:fff5ee" value="#fff5ee"></option>
<option style="background-color:fffafa" value="#fffafa"></option>
<option style="background-color:f8f8ff" value="#f8f8ff"></option>
<option style="background-color:fffaf0" value="#fffaf0"></option>
<option style="background-color:f5f5f5" value="#f5f5f5"></option>
<option style="background-color:f0f8ff" value="#f0f8ff"></option>
<option style="background-color:f0ffff" value="#f0ffff"></option>
<option style="background-color:fdf5e6" value="#fdf5e6"></option>
<option style="background-color:f5fffa" value="#f5fffa"></option>
<option style="background-color:ffefd5" value="#ffefd5"></option>
<option style="background-color:ffdab9" value="#ffdab9"></option>
<option style="background-color:faf0e6" value="#faf0e6"></option>
<option style="background-color:eee8aa" value="#eee8aa"></option>
<option style="background-color:ffe4e1" value="#ffe4e1"></option>
<option style="background-color:ffe4b5" value="#ffe4b5"></option>
<option style="background-color:ffdead" value="#ffdead"></option>
<option style="background-color:d2b48c" value="#d2b48c"></option>
<option style="background-color:f5deb3" value="#f5deb3"></option>
<option style="background-color:fafad2" value="#fafad2"></option>
<option style="background-color:ffffe0" value="#ffffe0"></option>
<option style="background-color:fff8dc" value="#fff8dc"></option>
<option style="background-color:faebd7" value="#faebd7"></option>
<option style="background-color:f5f5dc" value="#f5f5dc"></option>
<option style="background-color:fffacd" value="#fffacd"></option>
<option style="background-color:fffff0" value="#fffff0"></option>
<option style="background-color:f0e68c" value="#f0e68c"></option>
<option style="background-color:e6e6fa" value="#e6e6fa"></option>
<option style="background-color:fff0f5" value="#fff0f5"></option>
<option style="background-color:ffe4c4" value="#ffe4c4"></option>
<option style="background-color:ffebcd" value="#ffebcd"></option>
<option style="background-color:deb887" value="#deb887"></option>
<option style="background-color:cd853f" value="#cd853f"></option>
<option style="background-color:00ced1" value="#00ced1"></option>
<option style="background-color:00bfff" value="#00bfff"></option>
<option style="background-color:7fffd4" value="#7fffd4"></option>
<option style="background-color:1e90ff" value="#1e90ff"></option>
<option style="background-color:00ffff" value="#00ffff"></option>
<option style="background-color:f0fff0" value="#f0fff0"></option>
<option style="background-color:87cefa" value="#87cefa"></option>
<option style="background-color:afeeee" value="#afeeee"></option>
<option style="background-color:e0ffff" value="#e0ffff"></option>
<option style="background-color:add8e6" value="#add8e6"></option>
<option style="background-color:b0c4de" value="#b0c4de"></option>
<option style="background-color:40e0d0" value="#40e0d0"></option>
<option style="background-color:48d1cc" value="#48d1cc"></option>
<option style="background-color:00ffff" value="#00ffff"></option>
<option style="background-color:7b68ee;color:white" value="#7b68ee"></option>
<option style="background-color:191970;color:white" value="#191970"></option>
<option style="background-color:6495ed;color:white" value="#6495ed"></option>
<option style="background-color:0000cd;color:white" value="#0000cd"></option>
<option style="background-color:6a5acd;color:white" value="#6a5acd"></option>
<option style="background-color:4682b4;color:white" value="#4682b4"></option>
<option style="background-color:0000ff;color:white" value="#0000ff"></option>
<option style="background-color:483d8b;color:white" value="#483d8b"></option>
<option style="background-color:5f9ea0;color:white" value="#5f9ea0"></option>
<option style="background-color:87ceeb;color:white" value="#87ceeb"></option>
<option style="background-color:4169e1;color:white" value="#4169e1"></option>
<option style="background-color:b0e0e6;color:white" value="#b0e0e6"></option>
<option style="background-color:000080;color:white" value="#000080"></option>
<option style="background-color:00008b;color:white" value="#00008b"></option>
<option style="background-color:8a2be2;color:white" value="#8a2be2"></option>
<option style="background-color:8b008b;color:white" value="#8b008b"></option>
<option style="background-color:9932cc;color:white" value="#9932cc"></option>
<option style="background-color:9400d3;color:white" value="#9400d3"></option>
<option style="background-color:ff00ff" value="#ff00ff"></option>
<option style="background-color:ff00ff" value="#ff00ff"></option>
<option style="background-color:c71585" value="#c71585"></option>
<option style="background-color:ba55d3" value="#ba55d3"></option>
<option style="background-color:9370db" value="#9370db"></option>
<option style="background-color:dc143c" value="#dc143c"></option>
<option style="background-color:ff1493" value="#ff1493"></option>
<option style="background-color:ffb6c1" value="#ffb6c1"></option>
<option style="background-color:ff69b4" value="#ff69b4"></option>
<option style="background-color:ffc0cb" value="#ffc0cb"></option>
<option style="background-color:dda0dd" value="#dda0dd"></option>
<option style="background-color:800080;color:white" value="#800080"></option>
<option style="background-color:ee82ee" value="#ee82ee"></option>
<option style="background-color:d8bfd8" value="#d8bfd8"></option>
<option style="background-color:da70d6" value="#da70d6"></option>
<option style="background-color:4b0082;color:white" value="#4b0082"></option>
<option style="background-color:a52a2a;color:white" value="#a52a2a"></option>
<option style="background-color:e9967a;color:white" value="#e9967a"></option>
<option style="background-color:f08080" value="#f08080"></option>
<option style="background-color:cd5c5c" value="#cd5c5c"></option>
<option style="background-color:ffa07a" value="#ffa07a"></option>
<option style="background-color:db7093" value="#db7093"></option>
<option style="background-color:f4a460" value="#f4a460"></option>
<option style="background-color:fa8072" value="#fa8072"></option>
<option style="background-color:ff6347" value="#ff6347"></option>
<option style="background-color:ff4500" value="#ff4500"></option>
<option style="background-color:ff0000" value="#ff0000"></option>
<option style="background-color:800000;color:white" value="#800000"></option>
<option style="background-color:8b0000;color:white" value="#8b0000"></option>
<option style="background-color:b22222;color:white" value="#b22222"></option>
<option style="background-color:d2691e;color:white" value="#d2691e"></option>
<option style="background-color:8b4513;color:white" value="#8b4513"></option>
<option style="background-color:a0522d;color:white" value="#a0522d"></option>
<option style="background-color:bc8f8f" value="#bc8f8f"></option>
<option style="background-color:ff7f50" value="#ff7f50"></option>
<option style="background-color:ff8c00" value="#ff8c00"></option>
<option style="background-color:ffa500" value="#ffa500"></option>
<option style="background-color:b8860b" value="#b8860b"></option>
<option style="background-color:ffd700" value="#ffd700"></option>
<option style="background-color:ffff00" value="#ffff00"></option>
<option style="background-color:7fff00" value="#7fff00"></option>
<option style="background-color:7cfc00" value="#7cfc00"></option>
<option style="background-color:00ff00" value="#00ff00"></option>
<option style="background-color:32cd32" value="#32cd32"></option>
<option style="background-color:00ff7f" value="#00ff7f"></option>
<option style="background-color:3cb371" value="#3cb371"></option>
<option style="background-color:adff2f" value="#adff2f"></option>
<option style="background-color:8fbc8f" value="#8fbc8f"></option>
<option style="background-color:90ee90" value="#90ee90"></option>
<option style="background-color:98fb98" value="#98fb98"></option>
<option style="background-color:9acd32" value="#9acd32"></option>
<option style="background-color:2e8b57;color:white" value="#2e8b57"></option>
<option style="background-color:00fa9a" value="#00fa9a"></option>
<option style="background-color:20b2aa" value="#20b2aa"></option>
<option style="background-color:66cdaa" value="#66cdaa"></option>
<option style="background-color:228b22;color:white" value="#228b22"></option>
<option style="background-color:008b8b;color:white" value="#008b8b"></option>
<option style="background-color:008080;color:white" value="#008080"></option>
<option style="background-color:006400;color:white" value="#006400"></option>
<option style="background-color:556b2f;color:white" value="#556b2f"></option>
<option style="background-color:008000;color:white" value="#008000"></option>
<option style="background-color:808000;color:white" value="#808000"></option>
<option style="background-color:6b8e23;color:white" value="#6b8e23"></option>
<option style="background-color:bdb76b" value="#bdb76b"></option>
<option style="background-color:daa520" value="#daa520"></option>
</select>
</TD>
<TD colspan=2>
<select name=toid style="font-family:돋움,serif; font-size:12px; border-width:1; border-color:rgb(219,219,219); border-style:solid; width=60">
<option style="background-color:000000;color:white" value="">모두</option>
</select>
<!--<IMG SRC="skin/homebox00/images/homebox_chat_25.gif" HEIGHT=30>-->
</TD>
<TD height="30" valign="bottom"><input class=input size=30 style='width:100%; height:84%;' type=text name=test autocomplete=off></TD>
<TD><input type=image SRC="skin/homebox00/images/homebox_chat_27.gif" HEIGHT=30 onfocus='this.blur()'></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_28.gif" HEIGHT=30></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_29.gif" HEIGHT=30></TD>
<TD height="30" bgcolor="#F7F7F7"><a href="javascript:KChat.SendCMD('quit');location.href='list.php';" onfocus='this.blur()'><IMG SRC="skin/homebox00/images/homebox_chat_41.gif" border="0"></a> <a href="#" onclick="window.open('chgroom.php','_blank','width=300,height=200,toolbars=no,autoscrollbars=no')"><IMG SRC="skin/homebox00/images/homebox_chat_42.gif" border="0"></a></TD>
<TD><IMG SRC="skin/homebox00/images/homebox_chat_31.gif" HEIGHT=30></TD>
</TR>
</form>
<TR>
<TD width=12><IMG SRC="skin/homebox00/images/homebox_chat_32.gif" HEIGHT=6></TD>
<TD width=54><IMG SRC="skin/homebox00/images/homebox_chat_33.gif" HEIGHT=6></TD>
<TD width=68 COLSPAN=2><IMG SRC="skin/homebox00/images/homebox_chat_34.gif" HEIGHT=6></TD>
<TD width=100% background="skin/homebox00/images/homebox_chat_35.gif"><IMG SRC="" HEIGHT=6></TD>
<TD width=53><IMG SRC="skin/homebox00/images/homebox_chat_36.gif" HEIGHT=6></TD>
<TD width=16><IMG SRC="skin/homebox00/images/homebox_chat_37.gif" HEIGHT=6></TD>
<TD width=16><IMG SRC="skin/homebox00/images/homebox_chat_38.gif" HEIGHT=6></TD>
<TD width=136><IMG SRC="skin/homebox00/images/homebox_chat_39.gif" HEIGHT=6></TD>
<TD width=13><IMG SRC="skin/homebox00/images/homebox_chat_40.gif" HEIGHT=6></TD>
</TR>
<TABLE width="600" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<TR>
<TD><div align=center><a href="#" onclick="parent.chatview.document.body.innerHTML='';"><b>☞ 채팅방정리</b></a>
<img src=./emoticon/i_emoticons.gif align=absmiddle border=0> <input onclick='showEmoticon()' type=checkbox name=Emoticons value='yes'><b>이모티콘 출력</b>
</div>
</TD>
</TR>
<TR>
<TD><? include "../kchat3/emo.php"; ?>
</TD>
</TR>
<table>
</TABLE>
<OBJECT id="KChat" classid="clsid:86A9E0B2-B22C-4EF9-A29C-7870FAD5C072"
codebase="KChat.cab#version=<?=$CABVERSION?>" width=.360 height=.350 align=center hspace=0 vspace=0 >
<param name=MODE value="<?=$mode?>">
<param name=ROOMIP value="<?=$ip?>">
<param name=UID value="<?=$UID?>">
<param name=UPASSWORD value="<?=$UPASSWORD?>">
<param name=RPASSWORD value="<?=$RPASSWORD?>">
<param name=RTITLE value="<?=$RTITLE?>">
<param name=ROOMMAX value="<?=$ROOMMAX?>">
<param name=CHATPATH value="<?=$CHATPATH?>">
<param name=MYIP value="<?=$MYIP?>">
<param name=NICKMODULE value="module-nick.php">
<param name=CREATEMODULE value="module-write.php">
<param name=DELMODULE value="module-delete.php">
<param name=MODIFYMODULE value="module-modify.php">
<param name=NOTICE value="notice.php">
<param name=TEMP1 value="">
<param name=TEMP2 value="">
<param name=TEMP3 value="">
</OBJECT>
<SCRIPT>
// 자동링크 기능 - <a href=http://phpschool.com/bbs2/inc_view.html?id=9072&code=tnt2 target=_blank>http://phpschool.com/bbs2/inc_view.html?id=9072&code=tnt2 </a>
function sw_autolink(str)
{
str = String(str);
var regDoneSrcDouble = new RegExp("(src|href|url|link|path|value|file|codebase|pluginspage|location)([ ]*=[ ]*)(\")(http|https|mms|mmst|ftp|telnet|news|gopher|link)(://[a-z0-9\.\-]+[^\"\r\n]+)(\")", "gi");
str = str.replace(regDoneSrcDouble, "$1=$3$4___---#Done#Src#---___$5$6");
var regDoneSrcSingle = new RegExp("(src|href|url|link|path|value|file|codebase|pluginspage|location)([ ]*=[ ]*)(\')(http|https|mms|mmst|ftp|telnet|news|gopher|link)(://[a-z0-9\.\-]+[^\'\r\n]+)(\')", "gi");
str = str.replace(regDoneSrcSingle, "$1=$3$4___---#Done#Src#---___$5$6");
var regDoneSrc = new RegExp("(src|href|url|link|path|value|file|codebase|pluginspage|location)([ ]*=[ ]*)(http|https|mms|mmst|ftp|telnet|news|gopher|link)(://[a-z0-9\.\-]+[^\'\"<> \t\r\n]*)", "gi");
str = str.replace(regDoneSrc, "$1=$3___---#Done#Src#---___$4");
var regDoneEmail = new RegExp("(mailto:)([_a-z0-9.\-]+@)([a-z0-9\-]+\.[a-z0-9.\-]+)", "gi");
str = str.replace(regDoneEmail, "$1$2___---#Done#Src#---___$3");
var regURL = new RegExp("(http|https|mms|mmst|ftp|telnet|news|gopher|link)(://[a-z0-9\.\-]+[^\'\"<> \t\r\n]*)", "gi");
str = str.replace(regURL, "<a title='새 창으로 열려요.' target=_blank href=\"$1___---#Done#Src#---___$2\"><font color=#dd0000><u>$1___---#Done#Src#---___$2</u></font></a>");
var regEmail = new RegExp("([_a-z0-9.\-]+@)([a-z0-9\-]+\.[a-z0-9\-\.]+)", "gi");
str = str.replace(regEmail, "<a title='Outlook Express 같은 메일 프로그램을 설치하여 계정을 설정해놓았을 경우에만 메일을 보낼 수 있어요. 대개의 컴퓨터에서는 보낼 수 없으니 안 누르는 게 나을 거예요.' href=\"mailto:$1$2\"><font color=#dd0000><u>$1$2</u></font></a>");
return str.replace(/___---#Done#Src#---___/g, "");
}
//이모티콘
function emoticon_html(str)
{
str=str.replace("emtc_001","<img src=/kchat3/emoticon/1.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_002","<img src=/kchat3/emoticon/2.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_003","<img src=/kchat3/emoticon/3.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_004","<img src=/kchat3/emoticon/4.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_005","<img src=/kchat3/emoticon/5.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_006","<img src=/kchat3/emoticon/6.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_007","<img src=/kchat3/emoticon/7.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_008","<img src=/kchat3/emoticon/8.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_009","<img src=/kchat3/emoticon/9.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_010","<img src=/kchat3/emoticon/10.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_011","<img src=/kchat3/emoticon/11.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_012","<img src=/kchat3/emoticon/12.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_013","<img src=/kchat3/emoticon/13.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_014","<img src=/kchat3/emoticon/14.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_015","<img src=/kchat3/emoticon/15.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_016","<img src=/kchat3/emoticon/16.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_017","<img src=/kchat3/emoticon/17.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_018","<img src=/kchat3/emoticon/18.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_019","<img src=/kchat3/emoticon/19.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_020","<img src=/kchat3/emoticon/20.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_021","<img src=/kchat3/emoticon/21.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_022","<img src=/kchat3/emoticon/22.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_023","<img src=/kchat3/emoticon/23.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_024","<img src=/kchat3/emoticon/24.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_025","<img src=/kchat3/emoticon/25.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_026","<img src=/kchat3/emoticon/26.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_027","<img src=/kchat3/emoticon/27.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_028","<img src=/kchat3/emoticon/28.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_029","<img src=/kchat3/emoticon/29.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_030","<img src=/kchat3/emoticon/30.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_031","<img src=/kchat3/emoticon/31.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_032","<img src=/kchat3/emoticon/32.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_033","<img src=/kchat3/emoticon/33.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_034","<img src=/kchat3/emoticon/34.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_035","<img src=/kchat3/emoticon/35.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_036","<img src=/kchat3/emoticon/36.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_037","<img src=/kchat3/emoticon/37.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_038","<img src=/kchat3/emoticon/38.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_039","<img src=/kchat3/emoticon/39.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_040","<img src=/kchat3/emoticon/40.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_041","<img src=/kchat3/emoticon/41.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_042","<img src=/kchat3/emoticon/42.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_043","<img src=/kchat3/emoticon/43.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_044","<img src=/kchat3/emoticon/44.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_045","<img src=/kchat3/emoticon/45.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_046","<img src=/kchat3/emoticon/46.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_047","<img src=/kchat3/emoticon/47.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_048","<img src=/kchat3/emoticon/48.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_049","<img src=/kchat3/emoticon/49.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_050","<img src=/kchat3/emoticon/50.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_051","<img src=/kchat3/emoticon/51.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_052","<img src=/kchat3/emoticon/52.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_053","<img src=/kchat3/emoticon/53.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_054","<img src=/kchat3/emoticon/54.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_055","<img src=/kchat3/emoticon/55.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_056","<img src=/kchat3/emoticon/56.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_057","<img src=/kchat3/emoticon/57.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_058","<img src=/kchat3/emoticon/58.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_059","<img src=/kchat3/emoticon/59.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_060","<img src=/kchat3/emoticon/60.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_061","<img src=/kchat3/emoticon/61.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_062","<img src=/kchat3/emoticon/62.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_063","<img src=/kchat3/emoticon/63.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_064","<img src=/kchat3/emoticon/64.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_065","<img src=/kchat3/emoticon/65.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_066","<img src=/kchat3/emoticon/66.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_067","<img src=/kchat3/emoticon/67.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_068","<img src=/kchat3/emoticon/68.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_069","<img src=/kchat3/emoticon/69.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_070","<img src=/kchat3/emoticon/70.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_071","<img src=/kchat3/emoticon/71.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_072","<img src=/kchat3/emoticon/72.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_073","<img src=/kchat3/emoticon/73.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_074","<img src=/kchat3/emoticon/74.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_075","<img src=/kchat3/emoticon/75.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_076","<img src=/kchat3/emoticon/76.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_077","<img src=/kchat3/emoticon/77.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_078","<img src=/kchat3/emoticon/78.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_079","<img src=/kchat3/emoticon/79.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_080","<img src=/kchat3/emoticon/80.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_081","<img src=/kchat3/emoticon/81.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_082","<img src=/kchat3/emoticon/82.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_083","<img src=/kchat3/emoticon/83.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_084","<img src=/kchat3/emoticon/84.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_085","<img src=/kchat3/emoticon/85.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_086","<img src=/kchat3/emoticon/86.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_087","<img src=/kchat3/emoticon/87.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_088","<img src=/kchat3/emoticon/88.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_089","<img src=/kchat3/emoticon/89.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_090","<img src=/kchat3/emoticon/90.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_091","<img src=/kchat3/emoticon/91.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_092","<img src=/kchat3/emoticon/92.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_093","<img src=/kchat3/emoticon/93.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_094","<img src=/kchat3/emoticon/94.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_095","<img src=/kchat3/emoticon/95.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_096","<img src=/kchat3/emoticon/96.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_097","<img src=/kchat3/emoticon/97.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_098","<img src=/kchat3/emoticon/98.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_099","<img src=/kchat3/emoticon/99.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_100","<img src=/kchat3/emoticon/100.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_101","<img src=/kchat3/emoticon/101.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_102","<img src=/kchat3/emoticon/102.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_103","<img src=/kchat3/emoticon/103.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_104","<img src=/kchat3/emoticon/104.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_105","<img src=/kchat3/emoticon/105.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_106","<img src=/kchat3/emoticon/106.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_107","<img src=/kchat3/emoticon/107.gif width=18 height=18 border=0>",str);
str=str.replace("emtc_108","<img src=/kchat3/emoticon/108.gif width=18 height=18 border=0>",str);
return str;
}//이모티콘끝
// 채팅 출력부분
function chattext(str,col)
{
str=emoticon_html(str);
str=sw_autolink(str);
chatview.document.body.insertAdjacentHTML('beforeEnd', '<font color='+col+'>'+str+'</font><br>');
chatview.document.body.scrollTop=99999999;
}
// 방제 출력부분
function chgtitle(str)
{
titlename.innerHTML = str;
window.open('user.php?ROOMIP=<? echo $ip; ?>&TEMP='+Math.ceil(Math.random() * 99999999),'userview');
}
// 입장,퇴장 체크
// 1 : 접속종료
// 2 : 접속
// 3 : 강퇴
// 4 : 영구
function userinout(mode,nick,uid)
{ var str;
switch(mode)
{
case '1' : str='퇴장하셨습니다.'; break;
case '2' : str='입장하셨습니다.'; break;
case '3' : str='강제 퇴장당하셨습니다.'; break;
case '4' : str='영구 퇴장당하셨습니다.'; break;
}
chatview.document.body.insertAdjacentHTML('beforeEnd', '<font style="font-size:9pt"><br> <font color=RED>'+nick+'</font> 님께서 '+str+'<br></font>');
chatview.document.body.scrollTop=99999999;
window.open('user.php?ROOMIP=<? echo $ip; ?>&TEMP='+Math.ceil(Math.random() * 99999999),'userview');
}
// 사용자 출력부분
// 에러 문제
// 0 : 방이 깨졌습니다.
// 1 : 서버부분에 문제가 있다
// 2 : 창이 두개가 띠워졋다
// 3 : 인원 꽉 찾다
// 4 : 영구강퇴된방
// 5 : 비밀번호가 틀렸음
// 6 : 강퇴되었음
// 7 : 영구강퇴되었음
// 8 : 깨진 방입니다.
// 9 : 해당 컴퓨터에 오류가 발생되었습니다(서버기능이 끊겨버림)
// 10 : 서버와 통신이 안됩니다(닉네임 불러오지 못함)
// 11 : 똑같은 아이디로 접근
// 12 : 공유기
function errorcode(str)
{
switch(str)
{
case '0' : alert('방이 깨졌음');break;
case '1' : alert('서버문제');break;
case '2' : alert('창이 두개가 띠워졋음');break;
case '3' : alert('인원초과');break;
case '4' : alert('영구강퇴된방');break;
case '5' : alert('비번오류');break;
case '6' : alert('강퇴');break;
case '7' : alert('영구강퇴되었음');break;
case '8' : alert('깨진방');break;
case '9' : alert('장시간 대화가 없었습니다.');break;
case '10' : alert('서버와 통신을 할수 없습니다');break;
case '11' : alert('중복된 아이디가 있습니다.');break;
case '12' : alert('공유기 사용자는 방을 만들수 없습니다.');break;
}
location.href='list.php?roomip=<?=$ip?>&kerr='+str;
}
// 오렌지님께서 추가하신부분 (Iframe - IE 5.0 일떄 안먹히는것)
function NewUser(maxno,id1,id2){
chat.toid.options[maxno] = new Option(id1,id2);
chat.toid.options.length=(maxno+1);
}
KChat.window = window;
// KChat.SendCMD('start');
window.onunload=function(){ KChat.SendCMD('quit'); }
</SCRIPT>
<body onload="KChat.SendCMD('start');" onunload="KChat.SendCMD('quit');">- 03-11-12
-
-
나그네님 같은 이모티를 두번이상 클릭시 그런현상이 나옵니다.^^
Mal 님 이모티가 출력이 전혀 안되는문제는 챗트폴더/skin/각스킨폴더/room.php
를 수정시 잘못 수정하신 경우 인듯 합니다.- 03-11-12
-
-
-
헐랭이님 감사합니다. 근데 이상하게 전 이모티콘 클리하면 대화창에는 emtc_008 식으로 나오던데요...우케 된일인지....chat폴더에 emo.php와 폴더를 올렸습니다. 답변 좀 부탁...
- 03-11-12
-
-
-
-
-
-
-