classifiedsrealtor
Feb 13th 2007, 7:32 am
Can someone please tell me how I can either delete this script from my site or modify it so that I can allow the site users to cut and paste on my site. The script below is embedded in a few of the pages in my site and disables anyone from right clicking and copying my site. It is a real pain for anyone who is trying to paste their listings and info into my site.
If I delete the script or try and modify it then any other .PHP that is parsed on my site goes bananas with error messages like this one:
warning:[function.main] failed to open stream. no such file or in directory/home.php on line 43
This is the script in question:
<SCRIPT LANGUAGE="JavaScript1.1">
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Sorry Pal, Permission Disallowed !");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</script>
Thank you for your assistance..
If I delete the script or try and modify it then any other .PHP that is parsed on my site goes bananas with error messages like this one:
warning:[function.main] failed to open stream. no such file or in directory/home.php on line 43
This is the script in question:
<SCRIPT LANGUAGE="JavaScript1.1">
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Sorry Pal, Permission Disallowed !");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</script>
Thank you for your assistance..