How to make those copyright website click?

Discussion in 'Graphics & Multimedia' started by tourie, Dec 17, 2007.

  1. #1
    I recently created a mini website and I am wondering where I can do those thing where you want to try to right click and copy something, and usually a small window pops up saying "Copied is not allowed"? I'd like to know how I can do it and where I can it get it please?

    PS: One thing interesting, I know this is good and effective, but I don't understand why people still do it becasue they can just highlight it and just press "Ctrl C" (copy) and "Ctrl P" (paste) anyways?
     
    tourie, Dec 17, 2007 IP
  2. NsaneNoob

    NsaneNoob Peon

    Messages:
    2,103
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #2
    NsaneNoob, Dec 17, 2007 IP
  3. jojomart

    jojomart Peon

    Messages:
    133
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try this script before the </body> tags on your pages - it works on FireFox and IE:

    <script type="text/javascript">
    
    /*
    Disable right click script II (on images)- By Dynamicdrive.com
    For full source, Terms of service, and 100s DTHML scripts
    Visit http://www.dynamicdrive.com
    Modified here to disable IE image hover menu and
    truly disable right click in FF by jscheuer1 in
    http://www.dynamicdrive.com/forums
    */
    
    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")
    setTimeout("alert(clickmessage)",0)
    }
    
    function associateimages(){
    for(i=0;i<document.images.length;i++)
    document.images[i].onmousedown=disableclick;
    }
    
    if (document.all){
    document.onmousedown=disableclick
    for (var i_tem = 0; i_tem < document.images.length; i_tem++)
    document.images[i_tem].galleryimg='no'
    }
    else if (document.getElementById)
    document.onmouseup=disableclick
    else if (document.layers)
    associateimages()
    </script>
    Code (markup):
    I use it on my Wallpaper site, you can see it there - just click on an image, and try right clicking as you would to download a picture (now this only works on images, so if you want it for more than that, you can find lots of scripts by searching Google:

    http://www.wallpaper-downloads.info
     
    jojomart, Dec 21, 2007 IP
  4. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #4
    this is pretty much useless. most browsers have an option to view the source directly in the application menu as well. the chances are, if you're looking to do something like this, you're trying to hide something that has already been done. all you're doing is adding a useless and often annoying bit of javascript to your website. and on top of that, all you have to do is disable javascript and voila, right clicking is enabled.
     
    ansi, Dec 21, 2007 IP
  5. jojomart

    jojomart Peon

    Messages:
    133
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Gee thanks for thieving an image from my site to prove your point. Not everyone is so well versed in the art of manipulation.
     
    jojomart, Dec 21, 2007 IP
  6. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #6
    was just an example. it is now removed. any knowledgeable person is as you put it "well versed in the art of manipulation" i suppose? this is as i said and have proved, useless. anyone with common sense who wants to "theive" an image from any website on the internet can and will do so if they feel that they "have to have it". i do not condone it, but it is reality and it is very simple to do and unfortunately, is an every day occurance.
     
    ansi, Dec 21, 2007 IP