gold98 |
|
| Eccovi il codice per impedire la funzione del tasto destro del mouse. CODICE <script type="text/javascript"> <!-- .::PoGo HoRrOr::.altervista.org -->
<!-- Begin function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("heeyyy che cosa stai copiando non si puo'") return false; } return true; }
document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; // End --> </script>
|
| |