이모티 사용자분 참고하세요^^

- 11-25
- 8,165 회
- 3 건
이모티를 사용하시는분은 이상하게 같은 이모티를 두번이상 클릭하면
이모티 출력이 한번만되고 두번째 부터는 텍스트로 출력이 될겁니다.
이걸 해결할수있는 방법이 웹 서핑도중 발견 했습니다.ㅋㅋ
관련링크
<A HREF="http://lists.evolt.org/archive/Week-of-Mon-20020701/116905.html" TARGET="_blank" rel="nofollow">http://lists.evolt.org/archive/Week-of-Mon-20020701/116905.html</A>
길호챗/스킨/room.php 의 내용중
//이모티콘
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);
이런식으로 되어있는걸
전부 아래처럼
//이모티콘
function emoticon_html(str)
{
str=str.replace(/emtc_001/g,"<img src=/kchat3/emoticon/1.gif width=18 height=18 border=0>");
str=str.replace(/emtc_002/g,"<img src=/kchat3/emoticon/2.gif width=18 height=18 border=0>");
str=str.replace(/emtc_003/g,"<img src=/kchat3/emoticon/3.gif width=18 height=18 border=0>");
이런식으로 바꿔주면 같은 이모티를 여러번 클릭하여도 모두 출력이 되더군요^^
자세히보시면 바뀐 부분이 있을 겁니다.g 의 역활이 글로벌 선언 비슷 하대나 뭐래나. ㅠㅠ영어의 압박감이~ㅋ
이모티 출력이 한번만되고 두번째 부터는 텍스트로 출력이 될겁니다.
이걸 해결할수있는 방법이 웹 서핑도중 발견 했습니다.ㅋㅋ
관련링크
<A HREF="http://lists.evolt.org/archive/Week-of-Mon-20020701/116905.html" TARGET="_blank" rel="nofollow">http://lists.evolt.org/archive/Week-of-Mon-20020701/116905.html</A>
길호챗/스킨/room.php 의 내용중
//이모티콘
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);
이런식으로 되어있는걸
전부 아래처럼
//이모티콘
function emoticon_html(str)
{
str=str.replace(/emtc_001/g,"<img src=/kchat3/emoticon/1.gif width=18 height=18 border=0>");
str=str.replace(/emtc_002/g,"<img src=/kchat3/emoticon/2.gif width=18 height=18 border=0>");
str=str.replace(/emtc_003/g,"<img src=/kchat3/emoticon/3.gif width=18 height=18 border=0>");
이런식으로 바꿔주면 같은 이모티를 여러번 클릭하여도 모두 출력이 되더군요^^
자세히보시면 바뀐 부분이 있을 겁니다.g 의 역활이 글로벌 선언 비슷 하대나 뭐래나. ㅠㅠ영어의 압박감이~ㅋ
로그인 후 댓글내용을 입력해주세요