Log in

View Full Version : help with copeying



davidwhitt46
12-13-2005, 02:01 PM
:confused: people copey and pasting my pic off my site how can i stop them or lock ctrl c for my site :cool: ;) :)

yakkaman
12-13-2005, 02:16 PM
try this stops right click
<SCRIPT language=JavaScript>
<!--
//Disable right mouse click Script
var message="SOD OFF DO YOUR OWN!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</SCRIPT>

Twey
12-13-2005, 02:56 PM
You can't, effectively. You can apply irritating, ineffective scripts like the above (which take a matter of seconds to work around), or, preferably, you can:
a) watermark your images, and
b) copyright them.

Iiro
12-19-2005, 02:56 PM
You CAN'T lock control + c, but you can stop selecting:

<body onselectstart="return false" ondragstart="return false">
or stop right-click without alert:

<body onmousedown="if (event.button==2 || event.button==3) {return false}" oncontextmenu="return false">

Twey
12-19-2005, 02:59 PM
Unfortunately (or maybe not), that's still not reliable.