Malioglasnik.com.hr

[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum » Web Design » Java » How to disable right click and hide your source code????
How to disable right click and hide your source code????
BassoDate: Sunday, 2011-02-06, 12:55 PM | Message # 1
Group: Moderator
Messages: 1637
Awards: 2
Reputation: 695
Status: Offline

How to disable right click and hide your source code????

Code
<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="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>
 
If you have a problem about Intellectual property rights violation,

Please Contact Us we remove all content within 24 hours.



Forum » Web Design » Java » How to disable right click and hide your source code????
  • Page 1 of 1
  • 1
Search:
Forum Advice
Security advice: Protect your identity when downloading!
Your real identity and ip address is visible while downloading. These days, everyone's looking to throttle your connection, spy on what you're downloading, or even send you an ominous letter. If you use BitTorrent, you absolutely need to take precautions to hide your identity. An easy and raliable solution is a VPN by hide.me. Hide.me doesn't store any logs and offers blazing fast connections.Hide.me VPN is trustedby more than 500.000 internet users worldwide and recommended by Brna.my1.ru.