PDA

View Full Version : Disable right mouse click script



skidmore33
08-07-2005, 07:22 PM
I am new at designing websites, so with that in mind, please excuse my inexperience.

I have a client who wants to set up a multi-artist gallery. She wants to ensure copyright protection on the images. I have utilized the Disable right mouse click script -

<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
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>

Unfortunately, her son was able to view the source code and have access to images without much trouble.

Have you any suggestions on how to:
1. Encrypted the source code for the images?
2. Place a script on the images to keep each one from being copied?
3. Any combination or suggestions on what might worK?

cr3ative
08-08-2005, 06:23 AM
The rule online is - if you can see it, you can steal it.

Watermark your images, it's the only effective way of protecting your work.

cr3

Conbud
08-09-2005, 12:10 AM
I found the best thing to use for all my images is digimarc, it's by far the best way to keep a trace on all your images.