Quote:
|
Originally Posted by westblock I need to protect some images on a web site to keep viewers from easily saving and using my copyrighted & trademarked images.
I have a java code to prevent "Right-Click" and "save as" for PC users, but it doesn't work when a Mac user views my image. Mac users can still "save as" on any of my images. Is there a code to prevent Mac users from saving my images?
THANK YOU! |
Usually this scripts browser based, not OS. Turn off, java script in browser, and it will not work.
Code:
<script language=JavaScript>
<!--
var message="PROTECTED BY COPYRIGHT!";
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>