Отключение правой кнопки мышки и клавиатуры
Страница 1 из 1
Отключение правой кнопки мышки и клавиатуры
Скрипт отключения клавиатуры
Cтавить перед </head>
<script language=Javascript1.2>
function press(){
alert('Клавиатура отключена');
}
document.onkeydown=press;
</script>
Скрипт отключения правой кнопки мышки
<script language="Javascript">
<!—
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2) {
(message);
return false;}}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
—>
</script>
Cтавить перед </head>
<script language=Javascript1.2>
function press(){
alert('Клавиатура отключена');
}
document.onkeydown=press;
</script>
Скрипт отключения правой кнопки мышки
<script language="Javascript">
<!—
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2) {
(message);
return false;}}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
—>
</script>
Страница 1 из 1
Права доступа к этому форуму:
Вы не можете отвечать на сообщения