This contribution disables the right click on your website
Legend: 
Download

Report
a short version of disalow right click
and some thoughts about if its good idea to disalow right click
------------------------------------------------------
Short version of disalowed right click
its working on IE and Firefox
its not working with konqurer, opera
-----------------------------------------------------------------
Put this in your <body> Tag
<body onContextmenu="alert('Not allowed.'); return false">
-----------------------------------------------------------------
some thoughts
###########################################
disable right click isn`t a good protection, because its so easy to copy image and text on other way.
or simple disable javascript or much mor simple use Opera, konqurer :-)
disable right click makes your site unconfortable (example... tabbrowsing is more difficult on your site)
some intresting articke to that toppic
http://www.sitepoint.com/article/dont-disable-right-click/
Works on IE7 and Firefox 2.0.0.3 I tested
anyone with NS or Opera etc?
Just comment the line:
//document.onmousedown=disableselect
...and soon we will find a solution for dumb Firefox.. seems like IE is more cleaver.
This part of the script is causing the problem. Removing it fixes the problem but allows items to be highlighted and then added to clip board......
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
File is junk
With this contribution users can not "select" the box to enter their username and password. I am working on this but I am not real good with this code
File is junk.
There was a bug on firefox on last file, it was alerting two times the message.
Now it's working well on both browsers.
Let's start Versioning. This is V 1.0
Danny
I add this code
/////////////////////////////////
if(document.layers) window.captureEvents(Event.MOUSEDOWN);
function no_click(e){
if (navigator.appName == 'Netscape' && ( e.which == 2 || e.which == 3))
{
alert(message);return false;
}
if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{
alert(message);return false;
}
}
window.onmousedown=no_click;
document.onmousedown=no_click;
/////////////////////////////
at the end of Function.
and finaly worked on me IE7. Complete function is on the file.
This is working for me on ver 7
Install this in the head section
<head>
<script language=JavaScript>
var message="Function Disabled!";
///////////////////////////////////
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>
This is not working for IE7 ... after popup message the right click command is executed normaly. Anyone help?
To make the disable right mouse klick more strong i added the function that you cannot select on mouse down and drag.
Very nasty script works on al browsers, instead of the old contrib, where the functions where not working on Mozilla Firebird!!
Just added to instructions to allow you to also add block right & double clicks of your pop-up images.
Thanx to the original contributor and Nathan for adding the double click code!
this code works when both left and right mouse buttons are pressed at the same time. captures event.button 2 & 3
This contribution disables the right click on your website