![]() |
|
||||||||
경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지 |
|
무능력 [sykelos]
2008-08-13 23:57 X
감사합니다~!
이런 방법도 있어요.
function FindSearchString(SearchString) { try{ if (SearchString!=''){ var TextRange = document.body.createTextRange(); for (var i=0;TextRange.findText(SearchString);i++){ if (TextRange.parentElement().name){ TextRange.execCommand('BackColor','','#FFFF00'); TextRange.execCommand('ForeColor','false','#FF0000'); } TextRange.collapse(false); } } } catch(e){} 관련 글 리스트
|
Copyright © 1999-2015, borlandforum.com. All right reserved. |