<div><script type="text/javascript"></div> <div>function autolink(con) {</div> <div> var container = document.getElementById('con');</div> <div> var doc = container.innerHTML;</div> <div> var regURL = new RegExp("(http|https|ftp|telnet|news|irc)://([-/.a-zA-Z0-9_~#%$?&=:200-377()가-힣]+)","gi");</div> <div> var regEmail = new RegExp("([xA1-xFEa-z0-9_-]+@[xA1-xFEa-z0-9-]+\.[a-z0-9-]+)","gi");</div> <div> container.innerHTML = doc.replace(regURL,"<a href='$1://$2' target='_blank'>$1://$2</a>").replace(regEmail,"<a href='mailto:$1'>$1</a>");</div> <div>}</div> <div></script></div> <div><br></div> <div>위에 코드를 사용하였구요</div> <div><br></div> <div>이걸 적용하면</div> <div><br></div> <div><a target="_blank" href="http://www.inven.co.kr/board/powerbbs.php?come_idx=3583&" target="_blank" style="font-family:'맑은 고딕', Dotum;">http://www.inven.co.kr/board/powerbbs.php?come_idx=3583&</a><span style="font-family:'맑은 고딕', Dotum;">;l=714676</span></div> <div><span style="font-family:'맑은 고딕', Dotum;"><br></span></div> <div><a target="_blank" href="http://www.todayhumor.co.kr/board/view.php?table=bestofbest&" target="_blank" style="font-family:'맑은 고딕', Dotum;">http://www.todayhumor.co.kr/board/view.php?table=bestofbest&</a><span style="font-family:'맑은 고딕', Dotum;">;no=305118&s_no=305118&page=1</span></div> <div><span style="font-family:'맑은 고딕', Dotum;"><br></span></div> <div><font face="맑은 고딕, Dotum">세미콜론이 자동으로 입력되면서 세미콜론까지만 링크가 걸리네요</font></div> <div><font face="맑은 고딕, Dotum"><br></font></div> <div><font face="맑은 고딕, Dotum">이걸 해결할방법이없을까요?</font></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.