| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
disable right click script help | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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> |
|||||||
#2
|
|||||||
|
|||||||
![]() bump'dy bump
|
|||||||
#3
|
|||||||
|
|||||||
![]() Patience is a virtue
![]() put it in customer/home.tpl and wrap it within {literal}{/literal} tags
__________________
ex x-cart guru ![]() |
|||||||
#4
|
|||||||
|
|||||||
![]() thanks a bunch.
|
|||||||
|
|||
X-Cart forums © 2001-2020
|