Results 1 to 4 of 4

Thread: Disable right click problem

  1. #1
    Join Date
    Feb 2011
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Exclamation Disable right click problem

    1) Script Title: http://www.dynamicdrive.com/dynamicindex9/noright.htm

    2) Script URL (on DD):
    <script language=JavaScript>
    <!--

    //Disable right mouse click Script
    //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
    //For full source code, visit http://www.dynamicdrive.com

    var message="Function Disabled!";

    ///////////////////////////////////
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }

    function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }

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

    document.oncontextmenu=new Function("alert(message);return false")

    // -->
    </script>
    3) Describe problem:
    Can any body tell me at this web site can but when i put behind my <body expr:class='&quot;loading&quot; + data:blog.mobileClass'> cus i cannot find <body> but nothing happened

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    I'm not clear on what you mean at all. Can you rephrase what the problem is?

    (is this related to what you were asking about in your other thread? you should keep it all in the same thread until it's resolved, it's easier for people to help you that way.)

  3. #3
    Join Date
    Feb 2011
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by traq View Post
    I'm not clear on what you mean at all. Can you rephrase what the problem is?

    (is this related to what you were asking about in your other thread? you should keep it all in the same thread until it's resolved, it's easier for people to help you that way.)
    no it not last one is cannot put in side now is put inside cannot work

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    put inside of what? how is it failing (are there errors? simply nothing happens)?

    I'm not sure what you're trying to do with the <body> tag in your original post, but scripts shouldn't be there. Post your html code and we'll see if we can figure it out.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •