s

메시지 안뜨는 오른쪽 마우스 금지소스

<body> 태그 안에 oncontextmenu="return false" 만 추가하시면 됩니다.

마우스로 텍스트영역 선택도 할 수도 없게 하려면 ondragstart="return false" onselectstart="return false" 를 더 추가해서
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> 이렇게 하시면 됩니다.

예제는 링크 해놓았습니다.
|

댓글 2개

풀어주는 소스
javascript:function r(d){d.oncontextmenu=null;d.onselectstart=null;d.ondragstart=null;d.onkeydown=null;d.onmousedown=null;}function unify(w){try{r(w.document);}catch(e){}try{r(w.document.body);}catch(e){}try{var divs=w.document.getElementsByTagName("div");for(var i=0;i<divs.length;i++){try{r(divs[i]);}catch(e){}}}catch(e){}for(var i=0;i<w.frames.length;i++){try{unify(w.frames[i].window);}catch(e){}}}unify(self);
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
12년 전 조회 1,048
12년 전 조회 1,082
12년 전 조회 4,429
12년 전 조회 1,490
12년 전 조회 1,627
12년 전 조회 5,480
12년 전 조회 3,466
12년 전 조회 2,503
12년 전 조회 1,833
12년 전 조회 1,536
12년 전 조회 1,525
12년 전 조회 1,276
12년 전 조회 1,671
12년 전 조회 1,356
12년 전 조회 2,415
12년 전 조회 1,608
12년 전 조회 2,209
12년 전 조회 2,114
12년 전 조회 1,757
12년 전 조회 4,522
12년 전 조회 2,666
12년 전 조회 2,823
12년 전 조회 1,224
12년 전 조회 8,499
12년 전 조회 3,297