Announcement

Collapse
No announcement yet.

right click disable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    right click disable

    Is there a way to disable right click on the product images to stop them being 'harvested'? I have inserted code in the past into regular non-actinic html pages.
    I presume that I would need to add the code to one of the templates but I need to be sure which one and that the code would not interfere with the other scripts.
    Or is there another way? Have I missed a check box somewhere that will do the job for me


    Can anyone help?
    Im using v6 developer.

    cheers
    Located - Sunny Kent
    A computer once beat me at chess, but it was no match for me at kick boxing.

    #2
    I find this works for me in the <Head> section of my primary template's

    </script><SCRIPT language="JavaScript">
    if (document.all) {
    function click() {
    if (event.button==2) {
    alert('Stop! This is copyright material !')
    }
    }
    document.onmousedown=click
    }
    else {
    if (document.layers) {
    window.captureEvents(Event.MOUSEDOWN);
    function NSclick (evt) {
    if (evt.which==3) {
    alert("Stop! This is copyright material!");
    return false;
    }
    }
    window.onmousedown = NSclick;
    }
    }
    </SCRIPT>

    this works for IE but not firefox

    you might want to disable the imagetoolbar aswell, add this into the meta section.

    <meta http-equiv="imagetoolbar" content="no">

    Chris Lawton
    http://www.theworkbasket.co.uk/
    Cross Stitch & Craft Store

    Comment


      #3
      All done Thank - you Chris! I knew there would be someone out there that had done it!!
      Located - Sunny Kent
      A computer once beat me at chess, but it was no match for me at kick boxing.

      Comment

      Working...
      X