Hi scriptors,
Please follow the situation and find the questions in the bottom:
Situation:
I want to protect my pages from right click and PrintScreen SysRq
I found the following scripts in web site but they didn't work
In the first one which is to disable the keyboard, it said put it in the Head section of the page:
<SCRIPT LANGUAGE?JavaScript1.1?>
<!-- Begin DigitalJustice.com Protection
function keypressed() {
alert("Sorry, but you can't do that.");
}
document.onkeydown=keypressed;
// End -->
</SCRIPT>
In the second which is to disable right click, it said put it right above the body tag:
<script language=JavaScript>
<!--
var message="Copyright Nite Production!";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
Questions:
1 - are these scripts rights? if no can anyone provide me with?
2 - In Blue Voda, when I right click in the page, I find Page HTML, is there where should I put these scripts? if yes which tags? if no where, and how?
Thanks in advance
Please follow the situation and find the questions in the bottom:
Situation:
I want to protect my pages from right click and PrintScreen SysRq
I found the following scripts in web site but they didn't work
In the first one which is to disable the keyboard, it said put it in the Head section of the page:
<SCRIPT LANGUAGE?JavaScript1.1?>
<!-- Begin DigitalJustice.com Protection
function keypressed() {
alert("Sorry, but you can't do that.");
}
document.onkeydown=keypressed;
// End -->
</SCRIPT>
In the second which is to disable right click, it said put it right above the body tag:
<script language=JavaScript>
<!--
var message="Copyright Nite Production!";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
Questions:
1 - are these scripts rights? if no can anyone provide me with?
2 - In Blue Voda, when I right click in the page, I find Page HTML, is there where should I put these scripts? if yes which tags? if no where, and how?
Thanks in advance
Comment