PDA

View Full Version : Right Click Disable/ Image Right Click Disable etc etc


Smiry Kin's
03-01-2006, 01:46 AM
i remember seeing it before, but i've searched n looked thought 20 odd pages! :(

please help! lol

HMBeaty
03-01-2006, 02:20 AM
I had used this in my gallery before I watermarked my images and got a copyright on my site.

<script language=JavaScript>
<!--

var message="Image copy is not permitted!";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>

Just paste that code in the template you want. (forumhome, forumdisplay, showthread, etc)

3z3k3l
03-01-2006, 04:26 AM
Can you make it so when they right click they get a pop up Google Ad? :)

Smiry Kin's
03-01-2006, 05:08 AM
I had used this in my gallery before I watermarked my images and got a copyright on my site.

<script language=JavaScript>
<!--

var message="Image copy is not permitted!";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>

Just paste that code in the template you want. (forumhome, forumdisplay, showthread, etc)

member info?

also, i swear there is a script that does this all!!

has many features like images,text, all, etc etc i no i seen it :(

HMBeaty
03-02-2006, 04:23 AM
Yes, it will work in memberinfo too. Just copy and paste that at the top of the template you want