댓글 검색 목록

[javascript] getMousePosition

페이지 정보

작성자 운영자 작성일 18-08-30 13:44 조회 746 댓글 0
  1. function getMouseX( e ) {
  2. return e.pageX
  3. || ( e.clientX + ( document.documentElement.scrollLeft
  4. || document.body.scrollLeft ) );
  5. }
  6. function getMouseY( e ) {
  7. return e.pageY
  8. || ( e.clientY + ( document.documentElement.scrollTop
  9. || document.body.scrollTop ) );
  10. }

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.