Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: echo?

  1. #11
    Join Date
    Oct 2004
    Location
    Malaysia,
    Posts
    321

    Default

    Some thing like
    if the web right click is disabled,
    when you click right click,
    a message box come out,
    writing
    No right clicks!
    [OK]
    ...
    Any code for it??

  2. #12
    Join Date
    Oct 2004
    Location
    Malaysia,
    Posts
    321

    Default

    Quote Originally Posted by dBlast
    I am no good in chinese!!! :cry: :lol:

  3. #13
    Join Date
    Dec 2004
    Location
    Mel - Aus
    Posts
    34

    Default Yep

    Place this java script in you files.

    function disableRightClick(e)
    {
    //Your Message Here!!!
    var message = " Right click disabled!\n\r\nScripts © 2004 ~ Sky_net(MX)!";

    if(!document.rightClickDisabled) // initialize
    {
    if(document.layers)
    {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
    }
    if(document.layers || (document.getElementById && !document.all))
    {
    if (e.which==2||e.which==3)
    {

    alert(message);
    return false;
    }
    }
    else
    {
    alert(message);
    return false;
    }
    }

    disableRightClick();

  4. #14
    Join Date
    Oct 2004
    Location
    Malaysia,
    Posts
    321

    Default

    I know,
    most of these scrips
    can be found in
    www.dynamicdrive.com
    but i could not understand some.

Page 2 of 2 FirstFirst 12

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
  •