Domain Empire

Javascript: Silent No Right Click

Spaceship
Watch
this will stop stupid theives but smart ones can still steal your work but heres the code it blocks right click yet it doesnt have the annoying alert message
Code:
<script language=JavaScript>
<!--
//Code by Justin / Web X Designs
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// --> </script>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
nice, is it ns and mozilla compatible?
 
0
•••
0
•••
Thanks for posting it. It shall prove useful :)
 
0
•••
thing is.. just click view at the top of your browser... then click source.. lol - has the same effect

also ... didnt we all view source and nick stuff off other peoples pages... it's all part of the way of the internet.. don't be spoil sports ;)

nick
 
0
•••
But view sorce doesn't allow you to download stuff off people's pages.
 
0
•••
View source, in most instances, will supply you with a url to all images contained on said page. There is no way to be 100% safe from rippers.
 
0
•••
Originally posted by DarkDevil
View source, in most instances, will supply you with a url to all images contained on said page. There is no way to be 100% safe from rippers.

Yup, View Source, copy and paste url
 
0
•••
Originally posted by DarkDevil
View source, in most instances, will supply you with a url to all images contained on said page. There is no way to be 100% safe from rippers.

true unless you have one of those html encryption software
 
0
•••
Well...you also can save an image through veiw source. This script really helps with someone not stealing your images... ;)
 
0
•••
Originally posted by Shaggy
Well...you also can save an image through veiw source. This script really helps with someone not stealing your images... ;)

True. Will deter casual thieves.
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back