naves
New Member
- Messages
- 63
- Reaction score
- 0
- Points
- 0
Este simplemente no permite el botón derecho.
<script language="Javascript">
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->
</script>
Este además de no permitirlo muestra un mensaje.
<script language="JavaScript">
<!-- Begin
function right(e) {
var msg = " [ w w w.misitioweb.com ] ";
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); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;
// End -->
</script>
Con este lo castigas 10 clic's
<script language="JavaScript">
<!-- Begin
function right(e) {
var msg = " [ w w w.misitioweb.com ] ";
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); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;
// End -->
</script>
El script puede funcionar diferente, dependiendo del navegador.
<script language="Javascript">
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->
</script>
Este además de no permitirlo muestra un mensaje.
<script language="JavaScript">
<!-- Begin
function right(e) {
var msg = " [ w w w.misitioweb.com ] ";
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); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;
// End -->
</script>
Con este lo castigas 10 clic's
<script language="JavaScript">
<!-- Begin
function right(e) {
var msg = " [ w w w.misitioweb.com ] ";
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); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;
// End -->
</script>
El script puede funcionar diferente, dependiendo del navegador.