탈

네이버블로그 오른쪽마우스 막는거 말이죠..

웹페이지에 적용된 오른쪽마우스 펌(contextmenu) 방지 스크립트를 무력화시키는 프로그램인 YesClick 이라는게 있는데요.
이게 유독 네이버 블로그에서만 작동이 안되더라고요.

그래서 네이버 블로그의 소스를 살펴보니까


 /**
  * 오른쪽 마우스 및 셀렉션 금지 이벤트 해지 함수
  */
 detachSelectPrevent : function(){
  Event.unregister(document, "contextmenu", this.wfStopEvent);
  Event.unregister(document, "dragstart", this.wfStopEvent);
  Event.unregister(document, "selectstart", this.wfStopEvent);
  if (document.body.style.MozUserSelect != undefined) {
   document.body.style.MozUserSelect = "";
  }
 },

 /**
  * 오른쪽 마우스 및 셀렉션 금지 이벤트 등록 함수
  */
 attachSelectPrevent : function(){
  Event.register(document, "contextmenu", this.wfStopEvent);
  Event.register(document, "dragstart", this.wfStopEvent);
  Event.register(document, "selectstart", this.wfStopEvent);
  if ( document.body.style.MozUserSelect != undefined ){
   document.body.style.MozUserSelect = "none";
  }
 },

이런게 있던데... 어떻게 사용하여야 하는걸까요??

이런 곳에서 스크립트 잘 빼서 쓰는 능력자분들 꽤 계시던데... ㅠㅠ
혹시 이걸로 아시겠으면 답변 부탁드리겠습니다.
감사합니다.^^

|

댓글 4개

알툴바에서 오른쪽 버튼 클릭으로 해결됩니다.
막을려면 웹사이트 만들질 마세요
웹마 설치해보세요 ^^
인터넷 설정 보안부분인가? 거기서 액티브자바스크립트 사용안함에 체크하고 새로고침 한다음에 드래그후 복사 하고 나중에 다시 원상 복귀 시키면 되요.
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

203,292건
+
제목 글쓴이 날짜 조회
10-05-09 조회 1,818
10-05-09 조회 1,657
10-05-09 조회 2,325
10-05-09 조회 1,784
10-05-09 조회 1,850
10-05-09 조회 1,598
10-05-09 조회 3,562
10-05-09 조회 1,778
10-05-09 조회 1,787
10-05-09 조회 1,796
10-05-09 조회 1,470
10-05-09 조회 1,715
10-05-09 조회 1,913
10-05-09 조회 1,513
10-05-09 조회 1,926
10-05-09 조회 1,780
10-05-09 조회 1,799
10-05-09 조회 1,901
10-05-09 조회 1,547
10-05-09 조회 1,818