Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/09/2005, 17:26
Zbarrero
 
Fecha de Ingreso: septiembre-2005
Mensajes: 2
Antigüedad: 19 años, 4 meses
Puntos: 0
Un script que te puede servir

Te envio un script con el que se bloquea el boton derecho y la selección de texto en html, no se si funciona en tu caso.

<script language="JavaScript" type="text/JavaScript">
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
this.focus();
// handle keyboard events
var moz = false;
if (navigator.appName == "Mozilla" || (navigator.appName == "Netscape" && navigator.appVersion.indexOf("4.") == -1))

moz = true;
if (moz){
document.addEventListener("keyup",keypress,true);
document.addEventListener("click",anularBotonDerec ho,true);
}
else if(navigator.appName == "Netscape" && navigator.appVersion.indexOf("4.x") != -1){
document.captureEvents(Event.KEYPRESS);
childw.document.captureEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP);
}
//else{
//}
if (!moz) {
document.onkeypress = keypress;
document.onkeydown = keypress;
document.onkeyup = keypress;
document.onClick = anularBotonDerecho;
document.onMouseUp= anularBotonDerecho;
document.onmousedown=anularBotonDerecho;
}
function anularBotonDerecho() {
if (event.button==2 ) {
alert('COPYRIGHT © UNISANITAS');
}
}
// perform action based on keypress and state info
function keypress(e) {
if (navigator.appName == "Microsoft Internet Explorer")
tmp = event.keyCode;
else if (moz)
tmp = e.keyCode;
if (tmp==17)
alert("COPYRIGHT © NOMBRE");
else if (tmp==18)
alert("COPYRIGHT © NOMBRE");
else if (tmp==93)
alert("COPYRIGHT © NOMBRE");
}
</script>