제일 힘든 일
역시 세상에서 제일 힘든 것은…
사람이다…
가슴이 답답하다.
Archive for September, 2006
역시 세상에서 제일 힘든 것은…
사람이다…
가슴이 답답하다.
클릭하면 해당 객체 안에 있는 텍스트를 선택해준다.
function selectThis(obj) { if (window.getSelection) { window.getSelection().selectAllChildren(obj); } else if (document.body.createTextRange) { var r = document.body.createTextRange(); r.moveToElementText(obj); r.select(); } }
사용예제는…
선택안된 글 <span onclick="selectThis(this)">Select this!</span> 선택되지 않은 글
끝.