Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NO RIGHT CLICK


bmconv

Recommended Posts

Posted

To do this, go to:

 

Catalog :arrow: Includes :arrow: header.php

 

...add and this code

 

<script language=javascript>

<!-- Begin

function right(e) {

var msg = "Right-clicking is not possible in this document.";

if (navigator.appName == 'Netscape' && e.which == 3) {

alert(msg);

return false;

}

else

if (navigator.appName == 'Microsoft Internet Explorer' &&

event.button==2) {

alert(msg);

return false;

}

return true;

}

document.onmousedown = right;

// End -->

-->

</script>

 

...after:

 

    <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

 

(about line 55)

 

-Matt

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...