Results 1 to 3 of 3
  1. #1
    hirudora
    hirudora is offline
    Guest
    Join Date
    2012 Sep
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Block right mouse Button!

    PHP Code:
    //*****************************************************************************
    //    Text in the status bar
    //**************************************************************************
    window.status 'My Site Name!';

    //*****************************************************************************
    //    Disable SHIFT / CTRL + RIGHT MOUSE CLICK
    //*****************************************************************************
    function mouseDown(e) {
     var 
    shiftPressed=0;
     var 
    ctrlPressed=0;
     if (
    parseInt(navigator.appVersion)>3) {

      if (
    navigator.appName=="Mozilla")
           
    shiftPressed=(e.modifiers-0>3);
      else 
    shiftPressed=event.shiftKey;

      if (
    navigator.appName=="Mozilla")
           
    ctrlPressed=(e.modifiers-0>1);
      else 
    ctrlPressed=event.ctrlKey;

      if (
    shiftPressed || ctrlPressed) {
       
    alert ('Without Copies! Right Mouse Button Blocked!'// Display the message by pressing SHIFT or CTRL right-click
       
    return false;
      }

     }
     return 
    true;

    Simple, no? Do not forget to thank!

    Goodnight and good studies!

  2. #2
    jowsss
    jowsss is offline
    New member
    Join Date
    2011 Dec
    Posts
    17
    Thanks
    9
    Thanked 1 Time in 1 Post
    Rep Power
    0
    no normal site does not block mouse

  3. #3
    hirudora
    hirudora is offline
    Guest
    Join Date
    2012 Sep
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    This script is in my PC for much time, I think it was for Blog..

    A normal site use can use block mouse for not copy a image for example..

Similar Threads

  1. [Help] Block the right button of mouse
    By thallesscheffer in forum Web, PHP
    Replies: 5
    Last Post: 2013-11-06, 12:51 AM
  2. [Tutorial] removing mouse lag aika online
    By Tchucasbiras in forum Aika Guides, Tutorials
    Replies: 2
    Last Post: 2012-10-04, 04:54 AM
  3. [Source] Evo Button Menu
    By Dwar in forum D3D Programming
    Replies: 3
    Last Post: 2012-07-19, 08:20 AM
  4. Hit the button!
    By torrentsoo in forum Aika Online
    Replies: 1
    Last Post: 2010-10-19, 12:10 PM
Visitors found this page by searching for:

research button php

Posting Permissions

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