Dostalem od kolegi skrypt, ktory powinnien zabezpieczac przed wejsciem do zrodla. Ma jakies bledy bo nie zabezpiecza. A oto ten skrypt:
<?php
<script language="Javascript1.2">
// (C) 2000 www.CodeLifter.com
// <a href="http://www.codelifter.com" target="_blank">http://www.codelifter.com</a>
// Free for all users, but leave in this header
// Set the message for the alert box
am = "Niestety, prawy klawisz nie działa!";
// do not edit below this line
// ===========================
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1){
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>
?>