Log in

View Full Version : No right click


goldendog
02-04-2007, 01:26 AM
Greetings all
I was wondering how I can add a no right click to my board I am running 3.53 and some of the graphics that i put up are being ripped off so I thought that a no right click will do the job. But how to do this?

thanks in advance
Goldendog :)

cyberphr
02-04-2007, 01:46 AM
Don't bother, anyone smart enough to upload images can figure out how to work around it.

Mastar
02-04-2007, 03:01 AM
You can give this a try!:

<!-- START DISABLE RIGHT CLICK -->
<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="If you need my images please send me an email!";

///////////////////////////////////
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>

<!-- END DISABLE RIGHT CLICK -->

goldendog
02-04-2007, 09:07 PM
You can give this a try!:

<!-- START DISABLE RIGHT CLICK -->
<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="If you need my images please send me an email!";

///////////////////////////////////
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>

<!-- END DISABLE RIGHT CLICK -->


Thank you for this I am just a little confussed to were it should go, I tried the header template and no go there, so my next ? is were would be the best place for this to go.
I am aware of the view source but I have found most people are click people, so if they are smart enough to use the view source well then they can have it. I only want it as a deterant.
Thanks again for you effort and time
Goldendog.

Mastar
02-10-2007, 03:01 PM
Try at the bottom of your header.

Jay...
02-12-2007, 08:48 PM
You can give this a try!:

<!-- START DISABLE RIGHT CLICK -->
<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="If you need my images please send me an email!";

///////////////////////////////////
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>

<!-- END DISABLE RIGHT CLICK -->


anyway this can be done without the pop up notification?