<SCRIPT LANGUAGE="JavaScript1.1">
<!-- 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("Spiacente, Il tasto destro del mouse è disattivato");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->
</script>
----
scusate l'ignoranza, avrete gia' intuito che il codice che ho inserito serve a bloccare il tasto destro del mouse, la domanda è, un codice di questo tipo lo posso inserire nel file css del mio sito? o devo inserirlo in ogni pagina manualmente? grazie ciao![]()

Rispondi quotando