Announcement

Collapse
No announcement yet.

Photo Copywriting

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

  • Photo Copywriting

    How do I disable the right click and copy of my photographs?

    Thanks for everyones help in getting my site published!

    Lindsay
    www.snippetsgrooming.co.uk


  • #2
    <script language="JavaScript1.2">

    var clickmessage="Right click disabled on images!"

    function disableclick(e) {
    if (document.all) {
    if (event.button==2||event.button==3) {
    if (event.srcElement.tagName=="IMG"){
    alert(clickmessage);
    return false;
    }
    }
    }
    else if (document.layers) {
    if (e.which == 3) {
    alert(clickmessage);
    return false;
    }
    }
    else if (document.getElementById){
    if (e.which==3&&e.target.tagName=="IMG"){
    alert(clickmessage)
    return false
    }
    }
    }

    function associateimages(){
    for(i=0;i<document.images.length;i++)
    document.images[i].onmousedown=disableclick;
    }

    if (document.all)
    document.onmousedown=disableclick
    else if (document.getElementById)
    document.onmouseup=disableclick
    else if (document.layers)
    associateimages()
    </script>

    place in the end of page

    this will stop most people, however there are ways around it, nothing 100%, what you should do is place you name on each photo, using a photo edit program.
    www.bluevodaexchangelink.com
    BluevodaExchangeLink Help Center
    Bluevodaexchangelink Forum

    The only place for bluevoda site to be linked with!

    Comment


    • #3
      You gave that in Java. Can you give it in HTML?

      Comment


      • #4
        Originally posted by bumbleb
        You gave that in Java. Can you give it in HTML?
        just copy and place in the "end of page" in page html option
        www.bluevodaexchangelink.com
        BluevodaExchangeLink Help Center
        Bluevodaexchangelink Forum

        The only place for bluevoda site to be linked with!

        Comment

        Working...
        X