<body> 태그 안에 oncontextmenu="return false" 만 추가하시면 됩니다.
마우스로 텍스트영역 선택도 할 수도 없게 하려면 ondragstart="return false" onselectstart="return false" 를 더 추가해서
<body oncontextmenu="return false" ondragstart="return false" onselectstart="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);
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);
게시글 목록
| 번호 | 제목 |
|---|---|
| 20636 | |
| 20632 | |
| 20627 | |
| 11160 |
jQuery
참 좋은 이미지 슬라이딩 라이브러리
6
|
| 20626 | |
| 20625 | |
| 20619 | |
| 17684 |
계약서
홈페이지 제작 계약서
8
|
| 20182 | |
| 11154 |
Mobile
모바일로 접속했는지 확인하기.,
5
|
| 11151 | |
| 11143 |
MySQL
트리거 사용법에 관하여..
7
|
| 20607 | |
| 20601 | |
| 11131 | |
| 11124 | |
| 11121 | |
| 11118 | |
| 11113 |
PHP
페이스 댓글, 좋아요 달기
4
|
| 11109 |
JavaScript
페이스북 댓글창 좋아요 달기
3
|
| 20587 | |
| 11102 |
PHP
문자열 자르기 입니다.
6
|
| 11098 |
PHP
정규식에 관한 내용입니다.
3
|
| 11092 |
PHP
우분투서버 셋팅버입니다
5
|
| 11086 |
PHP
js, php 배열 연결
5
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기