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

· 10년 전 · 188

<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년 전 조회 194
9년 전 조회 149
9년 전 조회 200
9년 전 조회 154
9년 전 조회 221
9년 전 조회 299
9년 전 조회 309
10년 전 조회 248
10년 전 조회 212
10년 전 조회 208
10년 전 조회 180
10년 전 조회 218
10년 전 조회 189
10년 전 조회 150
10년 전 조회 150
10년 전 조회 202
10년 전 조회 245
10년 전 조회 179
10년 전 조회 214
10년 전 조회 179
10년 전 조회 157
10년 전 조회 210
10년 전 조회 236
10년 전 조회 338
10년 전 조회 373
🐛 버그신고