Right clicking on the images leads to downloading of images to the hard disk from sites, but I can trace some sites which has right click disabled. How did they do it ? :roll:
Printable View
Right clicking on the images leads to downloading of images to the hard disk from sites, but I can trace some sites which has right click disabled. How did they do it ? :roll:
They use a javascript.
Please note: you can easily bypass this, not worth it :)Code:<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Kijairo!
var message="Function Disabled!";
///////////////////////////////////
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>
So will this javascript work on a blog based on HTML ??
Yeah! simply add the code in the <BODY> section.Quote:
Originally Posted by nick_westlife
Like i said you can easily bypass this code :?
You can also edit the message it display just replace the ''function disabled'' with your own message.
var message="Function Disabled!";
hey dude this site might be useful for the ppi programs i think.but if you disable the right click option this might not help in ppi.i need a javasrciot that leads to downloading if we right click on anything.please help me.
go to regedit in this local machine >software>microsoft>windows>currentuser>u will find option