Защита сайта от копипаста
5 ответов224 просмотровСейчас просматривают: 1
· 01.10.2009, 14:08
Как эти люди сделали такой прикол с правой кнопкой мышки?!
Можно ли реализовать это у себя? И как?
— АдмиралЪ О_о
0
· 01.10.2009, 14:28
DaRkDoG: Обычный скрипт... Рассчитан на нубов...
ыч, а где его взять? как он называется? под какие двиги ? или он под все катит?
— АдмиралЪ О_о
0
· 01.10.2009, 14:29
tiesto: ... под какие двиги ? или он под все катит?
Тут вопрос не в движках, а в браузере, с которого смотрят сайт...
You can't feeling! No you can't feeling! And you can't feeling!
— People = Shit
0
· 01.10.2009, 14:30
Код
<script Language="JavaScript">
var message="Забудь о правой кнопке";
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>
var message="Забудь о правой кнопке";
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>
— ^_^
0
· 04.10.2009, 13:52
скрипт на запрет правой кнопки только без сообщения
Код
<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>
<!--
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>
— ^_^
0
Тема закрыта для ответов



