Bueno aqui te dejos varios codigos... escoje el que te guste mas... todos hacen lo mismo..
/////////////////////////////////
<!-- Botón derecho del mouse -->
<script LANGUAGE="JavaScript1.1">
<!-- Adaptado por Tk: Compatible con IE y NS -->
<!-- Script original enviado por Graciela -->
function derecha(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert('Botón derecho inhabilitado')
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){
alert('Botón derecho inhabilitado')
}
}
document.onmousedown=derecha
</script>
/////////////////////////////////////
<script language="JavaScript">
<!--
/*
No rightclick script v.2.5
(c) 1998 barts1000
[email protected]Don't delete this header!
*/
var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED";
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
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>
/////////////////////////////////////
<script language="JavaScript">
<!-- Beginning of JavaScript -
// Urs Dudli and Peter Gehrig.
// www.javafile.com
function buttoncheck(e) {
if(document.all && event.button==2) {
document.all.orderwindow.style.visibility = "visible"
alert("Please order my HTML-source by email!")
return false
}
if(document.layers && e.which==3) {
document.orderwindow.visibility = "visible"
alert("Please order my HTML-source by email!")
return false
}
}
function sendmail() {
if(document.all) {
document.all.orderwindow.style.visibility = "hidden"
document.forms[0].submit()
}
if(document.layers) {
document.orderwindow.visibility = "hidden"
document.orderwindow.document.forms[0].submit()
}
}
function closewindow() {
if(document.all) {
document.all.orderwindow.style.visibility = "hidden"
}
if(document.layers) {
document.orderwindow.visibility = "hidden"
}
}
if(document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = buttoncheck;
// -->
</script>
//////////////////////////////////////////
<script>
window.oncontextmenu="return false";
</script>
////////////////////////////////
<script language="JavaScript">
<!--
/*
*/
var message="Hey YOU!\nStop Stealing my pictures or\nFACE THE PUNISHMENT!"
function click(e) {
if (document.all) {
if (event.button == 2) {
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>
//////////////////////////////////
Todos estos scripts realizan lo mismo, bloquear el boton derecho, escoje el que te guste mas, que cubra tus necesidades..
No dudes en consultarme cualquier cosa o agregarme a tus expertos favoritos...
No olvides cerrar y valorar la pregunta..