DaphneRoss

no right click

Jul 27th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <SCRIPT TYPE="text/javascript">
  2. <!--
  3. //Disable right click script <script type="text/jfavascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js">
  4. //visit http://www.rainbow.arch.scriptmania.com/scripts/
  5. var message="Sorry, right-click has been disabled";
  6. ///////////////////////////////////
  7. function clickIE() {if (document.all) {(message);return false;}}
  8. function clickNS(e) {if
  9. (document.layers||(document.getElementById&&!document.all)) {
  10. if (e.which==2||e.which==3) {(message);return false;}}}
  11. if (document.layers)
  12. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  13. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  14. document.oncontextmenu=new Function("return false")
  15. // -->
  16.  
  17. </SCRIPT>
Advertisement
Add Comment
Please, Sign In to add comment