Friendster Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

disable right clicks

Go down

disable right clicks Empty disable right clicks

Post by Admin Wed Jan 16, 2008 6:49 pm

Choose one that suits you:

1. No Right Click Shake
Place this code at the BODY section of your HTML:

Code:
Code:
    <body oncontextmenu="return false">
    <SCRIPT LANGUAGE="JavaScript">
    <!---No Right Click--->
    function shake() {
    if (event.button==2) {
    var x=10
    if (document.all||document.layers) {
    for (i=0;i,i<20;i++){
    window.moveBy(0,x)
    window.moveBy(x,0)
    window.moveBy(0,-x)
    window.moveBy(-x,0)
    }
    }
    }
    }
    document.onmousedown=shake
    <!---END of 'Right Click = Shake Screen' Function--->
    </SCRIPT>


or

2. No Right Click Without Alert
Place this code at the HEAD section of your HTML:

Code:
Code:
    <script>
    function nrcIE(){
    if (document.all){return false;}}
    function nrcNS(e){
    if(document.layers||(document.getElementById&&!document.all)){
    if (e.which==2||e.which==3){
    return false;}}}
    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=nrcNS;
    }else{document.onmouseup=nrcNS;document.oncontextmenu=nrcIE;}
    document.oncontextmenu=new Function("return false");
    </script>



3. No Right Click with Alert Box
Place this code between the and tags of your html:

Code:
Code:
    <script language="Javascript1.2">

    message = "bawal yan";

    function NoRightClick() {
      if(((navigator.appName=="Microsoft Internet Explorer")&&(event.button > 1))
      ||((navigator.appName=="Netscape")&&(b.which > 1))){
      alert(message);
      return false;
      }
    }
    document.onmousedown = NoRightClick;

    // -->
    </script>



4. No Right Click Shake with ALERT Box
If you want, you may place tis code on your CSS:

Code:
Code:

    /* THE RIGHT CLICK WINDOW SHAKE - FriendsterMagic */
    body {right:expr/**/ession(function shake(){if (event.button==2){
    self.resizeTo(960,700)
    self.moveBy(15,17)
    self.moveBy(-13,-17)
    self.moveBy(13,19)
    self.moveBy(-14,-16)
    self.moveBy(14,23)
    self.moveBy(-25,-20)
    self.moveBy(24,22)
    self.moveBy(-20,-17)
    self.moveBy(24,16)
    self.moveBy(-13,-20)
    self.moveBy(20,20)
    self.moveBy(-26,-27)
    self.moveBy(15,17)
    self.moveBy(-13,-17)
    self.moveBy(13,19)
    self.moveBy(-14,-16)
    self.moveBy(14,23)
    self.moveBy(-25,-20)
    self.moveBy(24,22)
    self.moveBy(-20,-17)
    self.moveBy(24,16)
    self.moveBy(-13,-20)
    self.moveBy(20,20)
    self.moveBy(-26,-27)
    self.moveBy(15,17)
    self.moveBy(-13,-17)
    self.moveBy(13,19)
    self.moveBy(-14,-16)
    self.moveBy(14,23)
    self.moveBy(-25,-20)
    self.moveBy(24,22)
    self.moveBy(-20,-17)
    self.moveBy(24,16)
    self.moveBy(-13,-20)
    self.moveBy(20,20)
    self.moveBy(-26,-27)
    self.moveBy(15,17)
    self.moveBy(-13,-17)
    self.moveBy(13,19)
    self.moveBy(-14,-16)
    self.moveBy(14,23)
    self.moveBy(-25,-20)
    self.moveBy(24,22)
    self.moveBy(14,23)
    self.moveBy(-25,-20)
    self.moveBy(24,22)
    self.moveBy(-20,-17)
    self.moveBy(24,16)
    self.moveBy(-13,-20)
    self.moveBy(20,20)
    self.moveBy(-26,-27)
    self.moveBy(15,17)
    self.moveBy(-13,-17)
    self.moveBy(13,19)
    self.moveBy(-14,-16)
    self.moveBy(14,23)
    self.moveBy(-25,-20)
    self.moveBy(24,22)
    self.moveBy(-20,-17)
    self.moveBy(24,16)
    self.moveBy(-13,-20)
    self.moveBy(20,20)
    self.moveBy(-26,-27)
    self.moveBy(15,17)
    self.moveBy(-13,-17)
    self.moveBy(13,19)
    self.moveBy(-14,-16)
    self.moveBy(14,23)
    self.moveBy(-25,-20)
    self.moveBy(24,22)
    self.moveBy(-20,-17)
    self.moveBy(24,16)
    self.moveBy(-13,-20)
    self.moveBy(20,20)
    self.moveBy(-26,-27)
    self.moveBy(15,17)
    self.moveBy(-13,-17)
    self.moveBy(13,19)
    self.moveBy(-14,-16)
    self.moveBy(14,23)
    self.moveBy(-25,-20)
    self.moveBy(24,22)
    self.moveBy(-20,-17)
    self.moveBy(-13,-20)
    self.moveBy(20,20)
    self.moveBy(-26,-27)
    self.moveBy(28,17)
    self.moveBy(0, 0)
    alert(" Hala, bakit mo kasi nipindot? ");
    alert(" siguro gusto mo kopyahin noh? ");
    alert(" gusto mo ba ng account ko? ");
    alert(" bumilang ka muna, isa hanggang sampo ");
    alert(" tapos kanta ka muna ng hapi bertdey ");
    alert(" sige, press mo na yung ok ");
    alert(" ayaw pa rin? ");
    alert(" sorry... i-text mo na lang ako ");
    alert(" hindi mo alam number ko? ");
    alert(" sayang naman... sorry... ");
    alert(" sige tuloy mo na lang pagbabasa ng account ko ");
    alert(" wag mo na ulit pipindutin ang Right Click ng mouse ");
    alert(" Okey? ");
    alert(" Wait!!! ");
    alert(" Wala Lang... hehehehe ");
    alert(" Take care pOh ");
    alert(" Mmuuaahhh....Ü ");}}
    document.onmousedown=shake);}

Admin
Admin

Number of posts : 10
Registration date : 2008-01-16

https://03whitedevil03.board-directory.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum