Guest jalewin Posted April 15, 2013 Share Posted April 15, 2013 I'd like to disable the "save image as" option from the mouse right click button. Any suggestions where I can find tutorial for that? If no, how would I disable right mouse click? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 15, 2013 Share Posted April 15, 2013 Welcome jalewin! Glad to see you made it to the forums. Your needs are not really specific to CubeCart, so I have no solution for you. I suggest you google for a solution. If your solution is in fact a jQuery statement that disables the contextmenu, such as: $(this).bind("contextmenu", function(e) {e.preventDefault();}); you can insert this just after the very first line of /js/common.js. Any other solution that specifically targets the manipulation of your images, once you find one, the best place to incorporate it is at the end of /js/common.js. Quote Link to comment Share on other sites More sharing options...
Kraken Posted April 15, 2013 Share Posted April 15, 2013 Bear in mind that whatever you do with disabling the right click it's incredibly easy to get around. If you're worried about people using your images it's often easier to just watermark them. Quote Link to comment Share on other sites More sharing options...
Guest jalewin Posted April 15, 2013 Share Posted April 15, 2013 Thank you B Smither & Kraken for your replies.I realise that it is only a very basic impediment to those who want to take images, but it is a first line of defense. When I used CC ver4, I used the script below in the header.inc.php file and it worked. I can't seem to find the header.inc.php file in CC ver5. I found this Script in one of these Forums." Just put this into your header.inc.php (somwhere between the <head> and </head>Ie right under the:< style type="text/css"><!--@import url(<?echo"$site_url";?>/admin/style.css);-->< /style>put:Quote<script language="Javascript1.2">< !--var msg = "I am glad you liked my photos.";if(document.layers) window.captureEvents(Event.MOUSEDOWN);function no_click(e){if (navigator.appName == 'Netscape' && ( e.which == 2 || e.which == 3)){ alert(msg);return false;}if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)){ alert(msg);return false;}}Posted 07 November 2004 - 10:39 PMwindow.onmousedown=no_click;document.onmousedown=no_click;//-->< /script>" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.