Author Topic: removing right click restriction for 1.7.4  (Read 3811 times)

0 Members and 1 Guest are viewing this topic.

Offline eddyman1us

  • Newbie
  • *
  • Posts: 35
    • View Profile
removing right click restriction for 1.7.4
« on: January 16, 2007, 04:22:18 PM »
Hi , all I tried using the right click disable remover post in the FAQ but was unable to get it work on 1.7.4 any ideas how to remove right click restriction for 1.7.4  :?
« Last Edit: January 16, 2007, 05:42:59 PM by eddyman1us »

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: removing right click resitriction for 1.7.4
« Reply #1 on: January 16, 2007, 04:56:28 PM »
del this in the header.html
Code: [Select]
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

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

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");