Archive for Walkthough guides for myfreeforum phpbb 2 forums
  Forum Index -> The Most common Question's Answered

Stop right clicking

If for some reason you want to stop people form using the right click feature and bar them from copying photos etc you can use this code.

You have to place this code in overall_header.tpl

<script language="Javascript1.2">

// (C) 2003
// Source:
// Do not remove this header

// Set the message for the alert box
am = "This function is disabled!";

// 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){
return false
} else if (bIE && (event.button >1)) {
return false;

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

</script> Forum Index -> The Most common Question's Answered
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum