Author Topic: Is there a new way to remove Right Click with 1.7.1?  (Read 3323 times)

0 Members and 1 Guest are viewing this topic.

Offline V12kid

  • Newbie
  • *
  • Posts: 36
    • View Profile
Is there a new way to remove Right Click with 1.7.1?
« on: December 08, 2005, 11:30:52 PM »
I am wondering if there is a new or better way to remove the Right Click. I did a search and did not find the exact match for the lines to be removed so I am wondering if there is an updated method to removing this feature?


thanks

matt

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Is there a new way to remove Right Click with 1.7.1?
« Reply #1 on: December 08, 2005, 11:40:54 PM »
look at CP, Templates...
Template header @ your style an find:
<script language="JavaScript" type="text/javascript">
<!--
  function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }
 
  function right(e) {
    if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
      alert('© Copyright by {site_name}');
      return false;
    }
    else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) {
      alert('© Copyright by {site_name}');
      return false;
    }
    return true;
  }
  document.onmousedown=right;
  if (document.layers) window.captureEvents(Event.MOUSEDOWN);
  window.onmousedown=right;
// -->
</script>

... this is the rightClick

Offline V12kid

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Is there a new way to remove Right Click with 1.7.1?
« Reply #2 on: December 09, 2005, 12:09:54 AM »
thanks


matt