키보드,마우스 등 불펌방지 입니다.

· 10년 전 · 252

<script>
/*  Lepas  */
//마우스우측버튼,F3,F5,F11,F6,마우스키,쉬프트+링크클릭(새창방지),컨트롤 조합키, 백스페이스,드래그 방지//

var keydownCtrl = 0;
var keydownShift = 0;

document.onkeydown=keycheck;
document.onclick=clickcheck;
document.onkeyup=uncheckCtrlShift;

function keycheck()
{
      switch(event.keyCode){ //키값에 따라
              case 114:event.keyCode='';return false; break; //F3
              case 116:event.keyCode='';return false; break; //F5
              case 122:event.keyCode='';return false; break;//F11
              case 117:event.keyCode='';return false; break;//F6
              case 93:event.keyCode='';return false; break;//메뉴키
              case 16:event.keyCode='';keydownShift=1;return false; break;//쉬프트키
              case 17:event.keyCode='';keydownCtrl=1;return false; break;//컨트롤키
              case 8:event.keyCode='';return false; break;//백스페이스
      }
      if(keydownCtrl) return false;
}

function clickcheck()
{
      if(keydownShift) return false;
}

function uncheckCtrlShift()
{
      if(event.keyCode==17)      keydownCtrl=0;
      if(event.keyCode==16)      keydownShift=0;
}
</script>
<body onselectstart="return false" ondragstart="return false" oncontextmenu="return false;"> 

|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
10년 전 조회 261
10년 전 조회 199
10년 전 조회 258
10년 전 조회 217
10년 전 조회 271
10년 전 조회 363
10년 전 조회 376
10년 전 조회 316
10년 전 조회 279
10년 전 조회 272
10년 전 조회 240
10년 전 조회 282
10년 전 조회 253
10년 전 조회 215
10년 전 조회 206
10년 전 조회 264
10년 전 조회 301
10년 전 조회 237
10년 전 조회 270
10년 전 조회 242
10년 전 조회 219
10년 전 조회 277
10년 전 조회 306
10년 전 조회 402
10년 전 조회 437