Posted by scully on 01/01/06 01:25
hi all
I have a tag that i use to stop users stealing images from a sight
that uses java script tag as per following:
<script language=javascript>
<!-- Begin
function right(e) {
var msg = "Right clicking has been disabled on this website to protect
copyright of the displayed images.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' &&
event.button==2) {
alert(msg);
return false;
}
return true;
}
document.onmousedown = right;
// End -->
-->
</script>
I notice the script is a little different for explorer and netscape
what would i use for the browsers firefox & opera
thanks
scul
Navigation:
[Reply to this message]
|