본문 바로가기

드레그 금지

MintState 2008년 11월 17일 오후 12:24 조회 11750

드레그 금지

네이버에서 쓰는 것입니다.

<script type="text/javascript">
function checkRClickYN(isRClickNotAllowed, isAdmin) {
	if (isRClickNotAllowed && !isAdmin) { 
		document.oncontextmenu = new Function ("return false");
		document.ondragstart = new Function ("return false");
		document.onselectstart = new Function ("return false"); 
	}
}

document.onload = checkRClickYN(true, false);
</script>
공유 X Facebook LINE QR 코드

댓글 0개

첫 댓글을 남겨보세요.