X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   disable right click script help (https://forum.x-cart.com/showthread.php?t=3340)

need300z 06-25-2003 10:37 AM

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>

need300z 06-25-2003 01:06 PM

bump'dy bump

funkydunk 06-25-2003 10:50 PM

Patience is a virtue :wink:

put it in customer/home.tpl and wrap it within {literal}{/literal} tags

need300z 06-26-2003 07:58 AM

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.