bmconv Posted July 28, 2003 Posted July 28, 2003 Hi all Is there a way to protect the images such as a no right click javascript ?
Guest Posted July 28, 2003 Posted July 28, 2003 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
bmconv Posted July 28, 2003 Author Posted July 28, 2003 Thanks Matt Thats what I was looking for Brian
Recommended Posts
Archived
This topic is now archived and is closed to further replies.