Ver Mensaje Individual
  #8 (permalink)  
Antiguo 18/12/2005, 14:21
Avatar de elbar
elbar
Colaborador
 
Fecha de Ingreso: enero-2004
Ubicación: Buenos Aires
Mensajes: 1.406
Antigüedad: 21 años, 1 mes
Puntos: 8
Algunos Js:

Solo inhabilita boton derecho:

Código HTML:
<!-- Begin

function right(e) {

var msg = "  [ Boton derecho deshabilitado ] ";

if (navigator.appName == 'Netscape' && e.which == 3) {

alert(msg);  // Delete this line to disable but not alert user

return false;

}

else

if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {

alert(msg); 

return false;

}

return true;

}

document.onmousedown = right;

// End -->

</script> 

Inhabilita bot derecho y penaliza con xlixks:

Código HTML:
<script language="Javascript">

zaehler=0;

 function right(e) {

 if (navigator.appName == 'Netscape'){

 if (e.which == 3 || e.which == 2){

 alert("Boton derecho deshabilitado");

 for(i=0;i!=zaehler;i++)alert("Fuiste avisado - Condenado a: \n                 "+(zaehler-i)+"\n              clicks.");

 zaehler+=10;

 alert("¡La proxima sera la ultima!");

 return false;}}

 if (navigator.appName == 'Microsoft Internet Explorer'){

 if (event.button == 2 || event.button == 3){

 alert("Boton derecho deshabilitado");

 for(i=0;i!=zaehler;i++)alert("Fuiste avisado - Condenado a: \n                 "+(zaehler-i)+"\n              clicks.");

 zaehler+=10;

 alert("¡La proxima sera la ultima!");

 return false;}}

 return true;

 }

 document.onmousedown=right;

 if (document.layers) window.captureEvents(Event.MOUSEDOWN);

 window.onmousedown=right;

 // --></script> 

Al dar click derecho te abre un popup con una direccion predeterminada (puse este tema)

Código HTML:
<SCRIPT language=JavaScript> 

function right(e) {

if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) {

	a=window.open("http://www.forosdelweb.com/showthread.php?t=358022/","WindowName","width=350,height=300,top=40,left=50,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no");

	return false;

}

else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {

	a=window.open("http://www.forosdelweb.com/showthread.php?t=358022","WindowName","width=350,height=300,top=40,left=50,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no");

	return false;

}

return true;

}

document.onmousedown=right;

window.onmousedown=right;

</SCRIPT> 
Podes buscar mas , en google...
Ahora, estos alertas, como te mencionaron mas arriba...NO evita de que te saquen las imagenes y el contenido del sitio.

Para proteger las imagenes, cualquier servidor, dispone de hotlinks, para evitar que te linkeen las imagenes y conuman recursos tuyos..

Para que no te saquen las imagenes, lo mejor es no publicarlas...
__________________
Pateando tachos - Forobar