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

· 10년 전 · 191

<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에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
9년 전 조회 195
9년 전 조회 150
10년 전 조회 201
10년 전 조회 155
10년 전 조회 221
10년 전 조회 300
10년 전 조회 311
10년 전 조회 250
10년 전 조회 214
10년 전 조회 210
10년 전 조회 182
10년 전 조회 221
10년 전 조회 192
10년 전 조회 154
10년 전 조회 153
10년 전 조회 206
10년 전 조회 249
10년 전 조회 183
10년 전 조회 218
10년 전 조회 182
10년 전 조회 161
10년 전 조회 214
10년 전 조회 240
10년 전 조회 342
10년 전 조회 376
🐛 버그신고