Skip to content

드레그 금지

MintState November 17, 2008 at 12:24 PM Views 11751

드레그 금지

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

<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>
Share X Facebook LINE QR code

0 comments

Be the first to comment.