Advertisement
Guest User

Wordpress WP-CopyRightPro Javascript code

a guest
Jul 18th, 2012
759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <!-- EVITAR CLICK DERECHO-->
  2.  
  3. <script language="Javascript">
  4.  
  5. <!-- Begin
  6.  
  7. document.oncontextmenu = function(){return false}
  8.  
  9. // End -->
  10.  
  11. </script>
  12.  
  13.  
  14.  
  15. <!-- SELECCION DE TEXTO-->
  16.  
  17. <script type="text/javascript">
  18.  
  19. // IE Evitar seleccion de texto
  20.  
  21. document.onselectstart=function(){
  22.  
  23. if (event.srcElement.type != "text" && event.srcElement.type != "textarea" && event.srcElement.type != "password")
  24.  
  25. return false
  26.  
  27. else return true;
  28.  
  29. };
  30.  
  31.  
  32.  
  33. // FIREFOX Evitar seleccion de texto
  34.  
  35. if (window.sidebar){
  36.  
  37. document.onmousedown=function(e){
  38.  
  39. var obj=e.target;
  40.  
  41. if (obj.tagName.toUpperCase() == "INPUT" || obj.tagName.toUpperCase() == "TEXTAREA" || obj.tagName.toUpperCase() == "PASSWORD")
  42.  
  43. return true;
  44.  
  45. /*else if (obj.tagName=="BUTTON"){
  46.  
  47. return true;
  48.  
  49. }*/
  50.  
  51. else
  52.  
  53. return false;
  54.  
  55. }
  56.  
  57. }
  58.  
  59. // End -->
  60.  
  61. </script>
  62.  
  63.  
  64.  
  65.  
  66.  
  67. <!-- EVITAR IFRAME-->
  68.  
  69.  
  70.  
  71.  
  72.  
  73. <!-- EVITAR DRAG AND DROP-->
  74.  
  75. <script language="Javascript">
  76.  
  77. <!--// Begin
  78.  
  79. document.ondragstart = function(){return false}
  80.  
  81. //-->
  82.  
  83. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement