마우스 오른버튼을 막아야 되는데.. 정보
마우스 오른버튼을 막아야 되는데..본문
이유는
문제풀이를 제공합니다
온라인 모의고사 를 치루게 되는데
제한시간이내에 풀어야 되건만..
새로고침을 하게 되면 제한시간이 처음으로 돌아갑니다
마우스 오른쪽 제한 하는 스크립트는 모두 써보았으나
마우스 제한푸는 팁들이 쏟아져 나온데다 spell 같은 플그램까지 나오는 터인지라~~
(여기서부터 질문입니다..)
결론은 딱하나 ~~
마우스 오른 버튼 누르면 창이 닫히는 스크립트는 어케 됩니까~요~
소개된곳 주소라도 좀~~
문제풀이를 제공합니다
온라인 모의고사 를 치루게 되는데
제한시간이내에 풀어야 되건만..
새로고침을 하게 되면 제한시간이 처음으로 돌아갑니다
마우스 오른쪽 제한 하는 스크립트는 모두 써보았으나
마우스 제한푸는 팁들이 쏟아져 나온데다 spell 같은 플그램까지 나오는 터인지라~~
(여기서부터 질문입니다..)
결론은 딱하나 ~~
마우스 오른 버튼 누르면 창이 닫히는 스크립트는 어케 됩니까~요~
소개된곳 주소라도 좀~~
댓글 전체

기존 마우스 우측 누르면 경고창 나오는 소스에서
close명령어로 바꾸시면 닫히지 않을까요 -_-?
close명령어로 바꾸시면 닫히지 않을까요 -_-?
<script>
function NoClick() {
if ((event.button==2) || (event.button==3)) {
window.close();
}
}
document.onmousedown= NoClick ;
</script>
이거 말씀하시는건지요?
function NoClick() {
if ((event.button==2) || (event.button==3)) {
window.close();
}
}
document.onmousedown= NoClick ;
</script>
이거 말씀하시는건지요?
이건 창을 닫으시겠습니까? 물어보지 않고 닫아버리는 방법입니다.
<script>
function NoClick() {
if ((event.button==2) || (event.button==3)) {
opener=window; window.close();
}
}
document.onmousedown= NoClick ;
</script>
<script>
function NoClick() {
if ((event.button==2) || (event.button==3)) {
opener=window; window.close();
}
}
document.onmousedown= NoClick ;
</script>
이건 esc키 누리면 창닫기
ESC키를 눌러보세요 그럼 창이 닫힘니다.
<script>
var _dom=0;
function keydownhandler(e) {
if(document.all) e=window.event; // for IE
if(_dom==3) var EventStatus = e.srcElement.tagName;
else if(_dom==1) var EventStatus = e.target.nodeName; // for Mozilla
var cc = '';
var ch = '';
if(_dom==3) { // for IE
if(e.keyCode>0) {
ch=String.fromCharCode(e.keyCode);
cc=e.keyCode;
}
} else { // for Mozilla
cc=e.keyCode;
if(e.charCode>0) {
ch=String.fromCharCode(e.charCode);
}
}
if (_dom==3 && cc==27) // for IE
self.close();
return true;
}
function input(){
_dom=document.all ? 3 : (document.getElementById ? 1 : (document.layers ? 2 : 0));
document.onkeydown = keydownhandler;
}
input();
</script>
ESC키를 눌러보세요 그럼 창이 닫힘니다.
<script>
var _dom=0;
function keydownhandler(e) {
if(document.all) e=window.event; // for IE
if(_dom==3) var EventStatus = e.srcElement.tagName;
else if(_dom==1) var EventStatus = e.target.nodeName; // for Mozilla
var cc = '';
var ch = '';
if(_dom==3) { // for IE
if(e.keyCode>0) {
ch=String.fromCharCode(e.keyCode);
cc=e.keyCode;
}
} else { // for Mozilla
cc=e.keyCode;
if(e.charCode>0) {
ch=String.fromCharCode(e.charCode);
}
}
if (_dom==3 && cc==27) // for IE
self.close();
return true;
}
function input(){
_dom=document.all ? 3 : (document.getElementById ? 1 : (document.layers ? 2 : 0));
document.onkeydown = keydownhandler;
}
input();
</script>
장군전사님 정말 감사합니다..
마우스 오른 버튼 누르자 마자 닫히진 않지만 ..창이 닫히긴 닫힙니다.
너무 감사드립니다..
^^
마우스 오른 버튼 누르자 마자 닫히진 않지만 ..창이 닫히긴 닫힙니다.
너무 감사드립니다..
^^
음....... 제가 쓰는 방법인데.............
전 여러 가지 방법으로 막아놨습니다만^^;;
아래 소스 복사하신 후, html 파일로 만들어서 암호화 시켜사용해 보세요~
쓸만 하더라고요~~~~
-------------------------------------------------------------------------------------------------------------------
<html>
<head>
<title>소스 암호화 하기- mysesang.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<META NAME="Keywords" CONTENT="JavaScript, 자바스크립트">
<link rel="stylesheet" type="text/css" href="tip.css">
<SCRIPT LANGUAGE="JavaScript">
<!--
var txtCrip;
var txtFinal;
var crlf = unescape("%0D%0A")
var Sl = unescape("%2F")
function SetmysesangCode(form)
{
txtCrip = escape(form.txtPlain.value);
txtFinal = "<HTML>"
txtFinal = txtFinal + crlf + "<HEAD>"
txtFinal = txtFinal + crlf + '<SCRIPT LANGUAGE="Javascript">'
txtFinal = txtFinal + crlf + "<!--"
txtFinal = txtFinal + crlf + 'var Words ="' + txtCrip + '"'
txtFinal = txtFinal + crlf + "function SetmysesangCode()"
txtFinal = txtFinal + crlf + "{"
txtFinal = txtFinal + crlf + " var mysesangCode;"
txtFinal = txtFinal + crlf + " mysesangCode = unescape(Words);"
txtFinal = txtFinal + crlf + " document.write(mysesangCode);"
txtFinal = txtFinal + crlf + "} "
txtFinal = txtFinal + crlf + "SetmysesangCode();"
txtFinal = txtFinal + crlf + "// -->"
txtFinal = txtFinal + crlf + "<" + Sl + "SCRIPT>"
txtFinal = txtFinal + crlf + "<" + Sl + "HEAD>"
txtFinal = txtFinal + crlf + "<BODY>"
txtFinal = txtFinal + crlf + "<" + Sl + "BODY>"
txtFinal = txtFinal + crlf + "<" + Sl + "HTML>"
form.txtCripted.value = txtFinal;
}
function selectall(s){
var doc = document.body.createTextRange();
doc.moveToElementText(document.all(s));
doc.select();
doc.execCommand('copy');
alert('소스가 복사되었습니다.');
}
// -->
</SCRIPT>
<body marginwidth="0" marginheight="0" topmargin="10" leftmargin="0" bgcolor="#000000" style="cursor:url(../cursors/mysesangdia1.CUR)">
<div align='center'>
<br>
<input type="button" value=" close " onclick="top.window.close()" onmouseover="this.style.backgroundColor='#8BAAF7'" onmouseout="this.style.backgroundColor='#708090'"><br>
<table bgcolor=#000000 border=1 bordercolor=#a7a7a7 cellpadding=0 cellspacing=0 width=720>
<tr>
<td align=center>
<table border=0 cellpadding=0 cellspacing=30 width=650>
<tr>
<td>
<fieldset style="padding:8; border-top-width:4; border-right-width:1; border-bottom-width:1; border-left-width:1; border-color:#74a6ab; border-style:solid;">
<legend><font color=burlywood size=5>HTML 소스 암호화 하기</font></legend>
<span class=style3><br>
타인에게 보이기 싫은 소스는 아래에서 암호화 하여 사용 하세요.<br>
HTML뿐만 아니라 자바 스크립트까지 암호화 됩니다.<br>
</td></tr><tr><td><br>
<FORM METHOD="POST">
<table border=0 width=400 align=center>
<tr>
<td align=center><FONT SIZE="5" COLOR="white"><B>HTML 인코더</B></FONT>
</td>
</tr>
<tr>
<td align=center>
<p>
<TEXTAREA class="tex" NAME="txtPlain" VALUE="" ROWS=10 COLS=70>
이곳에 자바스크립트를 포함한 원래의 HTML 소스를 복사해 넣은 후 [암호화] 버튼을 클릭 하세요
</TEXTAREA>
<p>
<INPUT TYPE=BUTTON ONCLICK="SetmysesangCode(this.form)"
VALUE=" 암호화 " style="background-color:#304050; border-color:#607080;">
<P>
<TEXTAREA class="tex" id="my_textarea" NAME="txtCripted" VALUE="" ROWS=10 COLS=70>
</TEXTAREA>
<br>
<input type="button" value="소스 선택 복사하기" style="background-color:#304050; border-color:#607080;" onclick="javascript:selectall('my_textarea')">
<input type=reset value="코드 삭제" style="background-color:#304050; border-color:#607080;">
<p><FONT SIZE="2" COLOR="">위의 소스를 모두 복사하여 일반 HTML 문서로 저장하여 사용 하세요</FONT>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<input type="button" value=" close " onclick="top.window.close()" onmouseover="this.style.backgroundColor='#8BAAF7'" onmouseout="this.style.backgroundColor='#708090'"><br>
<br>
Copyright 2002 <a href="http://mysesang.com" target=_blank>mysesang.com Lee Yang Ho All right reserved.</a><br>
For more Information,<a href="mailto:*** 개인정보보호를 위한 이메일주소 노출방지 ***</a>
<br><br>
</div>
전 여러 가지 방법으로 막아놨습니다만^^;;
아래 소스 복사하신 후, html 파일로 만들어서 암호화 시켜사용해 보세요~
쓸만 하더라고요~~~~
-------------------------------------------------------------------------------------------------------------------
<html>
<head>
<title>소스 암호화 하기- mysesang.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<META NAME="Keywords" CONTENT="JavaScript, 자바스크립트">
<link rel="stylesheet" type="text/css" href="tip.css">
<SCRIPT LANGUAGE="JavaScript">
<!--
var txtCrip;
var txtFinal;
var crlf = unescape("%0D%0A")
var Sl = unescape("%2F")
function SetmysesangCode(form)
{
txtCrip = escape(form.txtPlain.value);
txtFinal = "<HTML>"
txtFinal = txtFinal + crlf + "<HEAD>"
txtFinal = txtFinal + crlf + '<SCRIPT LANGUAGE="Javascript">'
txtFinal = txtFinal + crlf + "<!--"
txtFinal = txtFinal + crlf + 'var Words ="' + txtCrip + '"'
txtFinal = txtFinal + crlf + "function SetmysesangCode()"
txtFinal = txtFinal + crlf + "{"
txtFinal = txtFinal + crlf + " var mysesangCode;"
txtFinal = txtFinal + crlf + " mysesangCode = unescape(Words);"
txtFinal = txtFinal + crlf + " document.write(mysesangCode);"
txtFinal = txtFinal + crlf + "} "
txtFinal = txtFinal + crlf + "SetmysesangCode();"
txtFinal = txtFinal + crlf + "// -->"
txtFinal = txtFinal + crlf + "<" + Sl + "SCRIPT>"
txtFinal = txtFinal + crlf + "<" + Sl + "HEAD>"
txtFinal = txtFinal + crlf + "<BODY>"
txtFinal = txtFinal + crlf + "<" + Sl + "BODY>"
txtFinal = txtFinal + crlf + "<" + Sl + "HTML>"
form.txtCripted.value = txtFinal;
}
function selectall(s){
var doc = document.body.createTextRange();
doc.moveToElementText(document.all(s));
doc.select();
doc.execCommand('copy');
alert('소스가 복사되었습니다.');
}
// -->
</SCRIPT>
<body marginwidth="0" marginheight="0" topmargin="10" leftmargin="0" bgcolor="#000000" style="cursor:url(../cursors/mysesangdia1.CUR)">
<div align='center'>
<br>
<input type="button" value=" close " onclick="top.window.close()" onmouseover="this.style.backgroundColor='#8BAAF7'" onmouseout="this.style.backgroundColor='#708090'"><br>
<table bgcolor=#000000 border=1 bordercolor=#a7a7a7 cellpadding=0 cellspacing=0 width=720>
<tr>
<td align=center>
<table border=0 cellpadding=0 cellspacing=30 width=650>
<tr>
<td>
<fieldset style="padding:8; border-top-width:4; border-right-width:1; border-bottom-width:1; border-left-width:1; border-color:#74a6ab; border-style:solid;">
<legend><font color=burlywood size=5>HTML 소스 암호화 하기</font></legend>
<span class=style3><br>
타인에게 보이기 싫은 소스는 아래에서 암호화 하여 사용 하세요.<br>
HTML뿐만 아니라 자바 스크립트까지 암호화 됩니다.<br>
</td></tr><tr><td><br>
<FORM METHOD="POST">
<table border=0 width=400 align=center>
<tr>
<td align=center><FONT SIZE="5" COLOR="white"><B>HTML 인코더</B></FONT>
</td>
</tr>
<tr>
<td align=center>
<p>
<TEXTAREA class="tex" NAME="txtPlain" VALUE="" ROWS=10 COLS=70>
이곳에 자바스크립트를 포함한 원래의 HTML 소스를 복사해 넣은 후 [암호화] 버튼을 클릭 하세요
</TEXTAREA>
<p>
<INPUT TYPE=BUTTON ONCLICK="SetmysesangCode(this.form)"
VALUE=" 암호화 " style="background-color:#304050; border-color:#607080;">
<P>
<TEXTAREA class="tex" id="my_textarea" NAME="txtCripted" VALUE="" ROWS=10 COLS=70>
</TEXTAREA>
<br>
<input type="button" value="소스 선택 복사하기" style="background-color:#304050; border-color:#607080;" onclick="javascript:selectall('my_textarea')">
<input type=reset value="코드 삭제" style="background-color:#304050; border-color:#607080;">
<p><FONT SIZE="2" COLOR="">위의 소스를 모두 복사하여 일반 HTML 문서로 저장하여 사용 하세요</FONT>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<input type="button" value=" close " onclick="top.window.close()" onmouseover="this.style.backgroundColor='#8BAAF7'" onmouseout="this.style.backgroundColor='#708090'"><br>
<br>
Copyright 2002 <a href="http://mysesang.com" target=_blank>mysesang.com Lee Yang Ho All right reserved.</a><br>
For more Information,<a href="mailto:*** 개인정보보호를 위한 이메일주소 노출방지 ***</a>
<br><br>
</div>
감사합니다
코드 암호화
코드 암호화
헉.... 내용을 잘 읽어보니 스크립트 금지가 아니었네요^^;;; 죄송.... 그래도 쓸만한 코딩변환 파일이니 그냥 남겨 놓겠습니다.