people copey and pasting my pic off my site how can i stop them or lock ctrl c for my site
![]()
![]()
![]()
people copey and pasting my pic off my site how can i stop them or lock ctrl c for my site
![]()
![]()
![]()
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>
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.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
You CAN'T lock control + c, but you can stop selecting:
or stop right-click without alert:Code:<body onselectstart="return false" ondragstart="return false">
Code:<body onmousedown="if (event.button==2 || event.button==3) {return false}" oncontextmenu="return false">
Last edited by Iiro; 12-19-2005 at 02:59 PM.
Unfortunately (or maybe not), that's still not reliable.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks