Este es un script, para poder bloquear el botón derecho del ratón con una alerta.
Como siempre nos vamos a Diseño- Añadir un gadget-
HTML/JavaScript y añadimos este código.
<script language='JavaScript' type='text/JavaScript'>
var tenth='';function ninth() {
if (document.all) {(tenth);alert("Block"); return false;}}
function twelfth(e) {
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(tenth);return false;}}}
if (document.layers) {document.captureEvents(Eve nt.MOUSEDOWN);document.onmousedown=twelfth;}
else{document.onmouseup=twelfth;document.oncontextmenu=ninth;}
document.oncontextmenu=new Function('alert("YOUR RIGHT CLICK ALERT MESSAGE HERE!!"); return false')
</script>
Cambiamos lo rojo por lo que queramos decir en el cuadro.
No hay comentarios:
Publicar un comentario
Deja tu comentario y en breve te contestaremos