![]() |
disable right click script help
wanted to know where i could throw this into x-cart and have it work correctly
<script> am = "This function is disabled!"; 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> |
bump'dy bump
|
Patience is a virtue :wink:
put it in customer/home.tpl and wrap it within {literal}{/literal} tags |
thanks a bunch.
|
All times are GMT -8. The time now is 10:06 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.