Contents

Views 8552 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
마우스가 있는 곳의 좌료를 알아 낼 수 있다. 

스크롤 값을 계산해서 알아 내는 것이기 때문에 눈에 보이는 화면 사이즈가 아닌 스크롤이 위치한 곳의 사이즈를 계산해서 반영한다.

var tempX = 0;
var tempY = 0;                    
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
document.all.MouseX.value = tempX;
document.all.MouseY.value = tempY;


?

List of Articles
No. Category Subject Author Date Views
349 Develop [c++] 템플릿(Template) 예제 소스.. file hooni 2013.04.23 7005
348 Develop [c++] 프리렉(freelec) 예제 자료.. ㅋㄷ file hooni 2013.04.23 6861
347 Develop [php] 논문 관리 프로그램.. ㅋㅋ file hooni 2013.04.23 7290
346 Develop [php] 빔 프로젝터 예약 프로그램.. ㅋㅋ file hooni 2013.04.23 6962
345 Develop [c++] 쓰레드(Thread) 객체의 사용 hooni 2013.04.23 8615
344 Develop [c] Unix Domain Socket 을 이용한 IPC hooni 2013.04.23 8052
343 Develop [chm] Programming Applications for Microsoft Windows file hooni 2013.04.23 7287
342 Develop [pdf] 포인터 문법 정리 (C pointer) file hooni 2013.04.23 7147
341 Develop [chm] C++ 문법 가이드 file hooni 2013.04.23 7971
340 Develop [chm] 윈도우즈에서 디버깅 기법(Debugging Applications) file hooni 2013.04.23 7553
339 Develop [pdf] 윈도우즈 95 시스템 프로그래밍(Windows 95 system programming) file hooni 2013.04.23 6869
338 Develop [chm] 비주얼 C++ 팁 모음 문서 file hooni 2013.04.23 7522
Board Pagination Prev 1 ... 37 38 39 40 41 42 43 44 45 46 ... 71 Next
/ 71