Announcement

Collapse
No announcement yet.

right click disable how to?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • right click disable how to?

    I would like to buy some graphics that require a right click disable -- can someone give me the skinny?

    Thanks,

    KR
    www.tallydocs.com

  • #2
    Re: right click disable how to?

    Ok, so I did a search for this topic AFTER I posted -- I'm still learning. I see that it is considered RUDE, and I agree . . . but those are the terms of this particular seller (nice to know that they can be copied anyway ;)

    I'll read the thread completely first -- thanks/sorry :)

    KR

    Comment


    • #3
      to risk being annoying . . .

      Let's say that I REALLY want to buy these graphics and she REALLY wantas me to disable the right click function . . . can someone talk me through it in a VERY BASIC Blue Voda way? I don't yet know about Java or anything else fancy ;)

      Thanks again,

      KR
      www.tallydocs.com

      Comment


      • #4
        Re: right click disable how to?

        Heres the code you need:

        <script language=JavaScript>
        var message="Right Click Is Disabled!";
        function anti_theft_IE(){
        if (event.button==2){
        alert(message);
        return false;
        }
        }

        function anti_theft_NS(e){
        if (document.layers||document.getElementById&&!docume nt.all){
        if (e.which==2||e.which==3){
        alert(message);
        return false;
        }
        }
        }
        if (document.layers){
        document.captureEvents(Event.MOUSEDOWN);
        document.onmousedown=anti_theft_NS;
        }
        else if (document.all&&!document.getElementById){
        document.onmousedown=anti_theft_IE;
        }
        document.oncontextmenu=new Function("alert(message);return false")
        </script>

        Im not sure how insert it with blue voda (I don't use BV), but from what I understand you can insert it somewhere. Someone who uses that program should come along and can probably help you with that part

        Register/Login Script
        Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

        Comment

        Working...
        X