[CTS] Re: Need help quick. Website disabling code.

  • From: "Tee" <tchapman@xxxxxxxxxxxx>
  • To: <computertalkshop@xxxxxxxxxxxxx>
  • Date: Tue, 4 May 2004 09:37:14 -0500

In the <head> section put this:

<!--
var message="This Function Has Been Disabled!";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
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>

Note:  This will only disable right clicking to view, copy, etc.

Hope this helps.

Tee
  


----- Original Message ----- 
From: Eric C. Vogel 
To: computertalkshop@xxxxxxxxxxxxx 
Sent: Tuesday, May 04, 2004 7:47 AM
Subject: [CTS] Need help quick. Website disabling code.


I need to add something to stop view sourse, cut, copy, paste of text.

Long story. This is for a private website. Since there are issues with win 
authentication someone else thought it was cool to create a website to mirror 
my info.

Thank you,
Eric Vogel

Other related posts: