Archive for September, 2006

역시 세상에서 제일 힘든 것은…
사람이다…
가슴이 답답하다.

Thursday, September 7th, 2006 at 23:23 Comments Off
Yahoo with IE

우리나라에 오면 야후도 이 모양?
잘 안보는 페이지라 해도 이런건 좀 신경써서 만들자. -_-;;
야후 본사는 어떻게 되어있나 싶어 들어가봤더니 페이지 디자인 자체가 아예 다르더라. 물론, 브라우저에 상관없이 깔끔하게 잘 보인다.

이게 원래 보여야 하는 모양(IE에서 본 것)

Firefox 에서 본 것

Opera 에서 본 것

Thursday, September 7th, 2006 at 09:28 3 comments

클릭하면 해당 객체 안에 있는 텍스트를 선택해준다.

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> 선택되지 않은 글

끝.

Tuesday, September 5th, 2006 at 19:05 1 comment
Page 4 of 6« First...23456