끄적끄적2010. 12. 23. 02:08

1. 오른쪽 마우스 클릭 방지

<script language=JavaScript>
 try {
 document.attachEvent('oncontextmenu', function () {
  return false;
 });
 } catch(e) {}
</script>

2. 드래그 금지 (Ctrl + C 금지)

<html>
<head>
<title></title>
<script>
<!--
 function dragno()
 {
       return false;
 }
 function defencespell()
 {
       eval('document.'+event.propertyName+'=dragno');
 }
//-->
</script>
</head>
<body onpropertychange="defencespell()" oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;">

</body>
</html>

 

 

펌 : http://jong970105.tistory.com/257

그래서 복사도 그림도 펌 금지 할때는

<html>
<head>
<title></title>
<script language=JavaScript>
 try {
 document.attachEvent('oncontextmenu', function () {
  return false;
 });
 } catch(e) {}
</script>
<script>
<!--
 function dragno()
 {
       return false;
 }
 function defencespell()
 {
       eval('document.'+event.propertyName+'=dragno');
 }
//-->
</script>
</head>
<body onpropertychange="defencespell()" oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;">

</body>
</html>

Posted by 검지발가락♡