View Single Post
  #5  
Old 02-01-2002, 07:52 PM
Archive Archive is offline
Administrator
 
Join Date: Mar 2009
Posts: 58,359
Default Question for the experts

Posted By: David

I already emailed Keith, but for the benefit of everyone ... One can simply cut and past the below text into the source of your website (put it near the top). This prevents the 'right click' function of the mouse or trackpad, which is the function used to save images, etc. You can change the "Not for copying" text to whatever message you want. When someone tries to save or copy an image, a button pops up with the message. Visit T206Museum.com to see how this fuction works.



<SCRIPT language="JavaScript"> <!--

var message="Not for copying"


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>

Reply With Quote