Announcement

Collapse
No announcement yet.

where to insert html code

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

    where to insert html code

    hi,

    i am trying to insert some code which stops people copying pictures.

    can someone please tell me where and how to insert it? also, is the code right?

    it is:

    <script language=JavaScript>
    <!--


    //Disable right mouse click Script
    var message="";
    ///////////////////////////////////
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }
    function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }
    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }
    document.oncontextmenu=new Function("alert(message);return false")

    //-->
    </SCRIPT>

    many thanks,

    nathan

    #2
    First of all don't do it, it achieves nothing and can easily be gotten around.

    If you insist, then put it just before the </head> tag and not in between any other tags.

    Comment


      #3
      ok thanks again

      Comment


        #4
        Waste of time - it's dead simple to get round disabled right clicking.

        If you don't want people copying your images, why not watermark them?

        Comment


          #5
          Yep - been there, got the T Shirt - disabling right click really annoys potential customers - watermarking is the only effective solution

          Aquazuro - designer stainless steel accessories

          Comment


            #6
            Agreed..... Watermark, watermark, watermark ..... its the only way.

            Adding to this, you can't stop someone taking an image, but you can control what image they take, so use this to your advantage.

            1. Watermark and advertise all in none.
            2. Render the image useless for all things other than a web icon, i.e. low-res, partly incomplete, merged with a header/banner etc etc.

            You can Flash your images, but not to sure absolutely on this one, but I know RH mouse button on Flash's are 'effectively' right click disabled by default, and then screen capture is hit and miss on what you get.

            May be someone uses Flash files - any feedback?

            S.
            esafetysigns.co.uk
            your instant download portal for self printable health and safety signs and posters
            ... download once use as many times as you like !


            http://www.esafetysigns.co.uk/index.html
            http://www.esafetysigns.co.uk/acatalog/index.html

            Comment


              #7
              Flash files can be grabbed and decompiled .. but this requires specialist tools and beyond the average user.

              If somebody desperately wants your image they will get it no matter what you do - as with any form of security (virtual or real world) you need to implement enough to stop 99.9999% of people with the final 0.0001% coming by not owning it in the first place.

              In agreement with the previous posts.... watermarking is the simplest, quickest and effective deterrent option and will stop most people from bothering. Disabled right clicks should be binned alongside marquee text.


              Bikster
              SellerDeck Designs and Responsive Themes

              Comment

              Working...
              X