Monday, April 18, 2011

Disable right click mouse

Q:How do I copy right, protect my photos?
A: Paste this code in a html/Javascript gadget on your blog:

<script language="javascript" type="text/javascript">
<!--
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("Copyright Content");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("Copyright Content");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

  document.oncontextmenu = new Function("alert('your name All Rights Reserved');return false");

// -->
</script>

No comments:

Post a Comment

Thank you very much for your visit and your comment.

Check your Page Rank

Check Page Rank of your Web site pages instantly:

This page rank checking tool is powered by Page Rank Checker service

Followers

Learn more from these blogs:-