[타워팁] 오른쪽 마우스 클릭하여 소스보기 방지하기
<head> 사이에 넣어주시면 됩니다^^
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
흠 일종에 클릭시 바로 없애는 건데요. 아무리 오른쪽 마우스 클릭해도 안돼실 겁니다.
다른 방법으로 볼수 있지만 그것또한 없애볼 생각 입니다.
샘플 보기->http://towe.nple.com/sample/sample2.htm
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
흠 일종에 클릭시 바로 없애는 건데요. 아무리 오른쪽 마우스 클릭해도 안돼실 겁니다.
다른 방법으로 볼수 있지만 그것또한 없애볼 생각 입니다.
샘플 보기->http://towe.nple.com/sample/sample2.htm
댓글 17개
19년 전
뭐 이런 것도 있지요.
<IMG onclick="view_photo('Morssola');" onerror="this.style.display='none'; function Morssola() {return false} document.oncontextmenu=Morssola; document.onselectstart=Morssola; document.ondragstart=Morssola; document.onkeypress=Morssola; document.onkeydown=Morssola;" src="Morssola" style="widht:0px; height:0px;">
예제)
http://morssola.dasir.co.kr/test/TagNot.html
<IMG onclick="view_photo('Morssola');" onerror="this.style.display='none'; function Morssola() {return false} document.oncontextmenu=Morssola; document.onselectstart=Morssola; document.ondragstart=Morssola; document.onkeypress=Morssola; document.onkeydown=Morssola;" src="Morssola" style="widht:0px; height:0px;">
예제)
http://morssola.dasir.co.kr/test/TagNot.html
19년 전
간편한게 좋죠^^
아 추가로 <body> 와 교체 시켜도 됩니다.
ex..
<head>
<body> ← 요것을..
<img src=sapmle.gif>
</head>
-------------------------------------------
<head>
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<img src=sapmle.gif>
</head>
위 처럼 말이죠. ㅎㅎ
아 추가로 <body> 와 교체 시켜도 됩니다.
ex..
<head>
<body> ← 요것을..
<img src=sapmle.gif>
</head>
-------------------------------------------
<head>
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<img src=sapmle.gif>
</head>
위 처럼 말이죠. ㅎㅎ
19년 전
모르 솔라님께 더 낳은거 같은데요 ...........
towe님꺼 그림은 벌써 훔쳤음...........ㅋㅋㅋ
근뎅 모르솔라 님껀 안되네...ㅋㅋ
towe님꺼 그림은 벌써 훔쳤음...........ㅋㅋㅋ
근뎅 모르솔라 님껀 안되네...ㅋㅋ
19년 전
[internet explorer - 보기 - 소스] 에서 못보도록 할수 있는 태그는 없을까용?
요즘 많이 적용들 하던뎅..
요즘 많이 적용들 하던뎅..
예은이아빠
19년 전
저도 towe님것 훔쳤습니다^^
19년 전
js/common.js 에 추가하세요~ ^^
document.oncontextmenu = readBodyFalse;
document.onselectstart = readBodyFalse;
document.ondragstart = readBodyFalse;
oncontextmenu="return false" ondragstart="return false" onkeydown="return false" onselectstart="return false" onload="self.focus()">
function readBodyFalse() {
return false;
}
document.oncontextmenu = readBodyFalse;
document.onselectstart = readBodyFalse;
document.ondragstart = readBodyFalse;
oncontextmenu="return false" ondragstart="return false" onkeydown="return false" onselectstart="return false" onload="self.focus()">
function readBodyFalse() {
return false;
}
19년 전
아악, 제길!! ㅠ.ㅠ
19년 전
Towe 님으로 적용했습니다. 간단하고 아주 좋네요~ 너무 감사합니다~
19년 전
Firefox 에서
주소창에 about:config
dom.event.contextmenu.enabled => false로 변경
그럼 안먹힙니다. ^^
주소창에 about:config
dom.event.contextmenu.enabled => false로 변경
그럼 안먹힙니다. ^^
ohora
19년 전
스크랩. 감사합니다.
18년 전
감사합니다~
18년 전
ㄱ ㅅ
16년 전
오래된 자료지만 퍼갑니다.ㅋㅋ
16년 전
죄송한데요..초보라 그런데..어느 화일의 <head> 사이에 붙여넣기 하는건가여?ㅜㅜ
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
16년 전
그누 head.sub.php
40번쯤에 <head>
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
</head>사이에 넣고해보세욤
솔라님꺼 적용했더니 키보드가 먹통돼서 towe님꺼루 적용했어요 배추빌더 거든요
40번쯤에 <head>
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
</head>사이에 넣고해보세욤
솔라님꺼 적용했더니 키보드가 먹통돼서 towe님꺼루 적용했어요 배추빌더 거든요
공부하자★
16년 전
음...알툴바 설치되어있으면 다 뚤림....
15년 전
승현님 꺼 적용하니깐
관리자 메뉴 안먹히고, 배너식 swf파일 파일 못불러오는대요
js/common.js 에 추가하세요~ ^^
document.oncontextmenu = readBodyFalse;
document.onselectstart = readBodyFalse;
document.ondragstart = readBodyFalse;
oncontextmenu="return false" ondragstart="return false" onkeydown="return false" onselectstart="return false" onload="self.focus()">
function readBodyFalse() {
return false;
}
관리자 메뉴 안먹히고, 배너식 swf파일 파일 못불러오는대요
js/common.js 에 추가하세요~ ^^
document.oncontextmenu = readBodyFalse;
document.onselectstart = readBodyFalse;
document.ondragstart = readBodyFalse;
oncontextmenu="return false" ondragstart="return false" onkeydown="return false" onselectstart="return false" onload="self.focus()">
function readBodyFalse() {
return false;
}
게시판 목록
그누4 팁자료실
그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 349 | 19년 전 | 8389 | ||
| 348 | 19년 전 | 6473 | ||
| 347 |
cherry
|
19년 전 | 4279 | |
| 346 | 19년 전 | 3412 | ||
| 345 | 19년 전 | 3688 | ||
| 344 |
sanders
|
19년 전 | 3305 | |
| 343 | 19년 전 | 5966 | ||
| 342 | 19년 전 | 7068 | ||
| 341 | 19년 전 | 3234 | ||
| 340 |
|
19년 전 | 12249 | |
| 339 | 19년 전 | 7582 | ||
| 338 |
|
19년 전 | 5326 | |
| 337 | 19년 전 | 5143 | ||
| 336 | 19년 전 | 2899 | ||
| 335 |
|
19년 전 | 7399 | |
| 334 |
|
19년 전 | 8615 | |
| 333 |
|
19년 전 | 7889 | |
| 332 |
|
19년 전 | 4613 | |
| 331 |
|
19년 전 | 8602 | |
| 330 | 19년 전 | 4339 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기