8/31/2011

Java script - - Don't let the user use right click on mouse

You can lock the right click mouse and user or visitors can not copy and paste the info on your website

//////////////////////////////////////////////// 
<SCRIPT LANGUAGE="JavaScript">
var message="Function Disabled!";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(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=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
<font face="Tahoma"><a target="_blank" href="http:// www.Riotunes.Blogspot.com /"><span style="font-size: 8pt; text-decoration: none">www.Riotunes.Blogspot.com</span></a></font>


//////////////////////////////////////////////////////////////////////////////////


****************************************************
 <<Back to Menu

0 comments:

Post a Comment

free counters

Submit ExpressSEO Services & Tools