No Right Click script

Status
Not open for further replies.

lazerman

Fully Optimized
Messages
1,842
Try to post new topcs in separate threads, rather than changing the topic completely in an existing thread, lazerman. Thanks :) - Emily

This is a nifty code for any website where you dont want to have your artwork saved.


<html>
<body>
<tt>RIGHT CLICK HERE</i</tt>
<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="Didn't work did it?";

///////////////////////////////////
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>
</body>
</html>
 
It works but not through here. I have a link to a page with some of my art in it that has that code. Click Here
The code tags arent working. So go to view>source to see the code.
 
Status
Not open for further replies.
Back
Top Bottom