+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 21 to 40 of 46

Thread: Copyright Images

  1. #21
    Join Date
    Nov 2008
    Posts
    76

    Default

    Try going to Green Bear's website; view source code and then copy and paste it from there, it might be that the forum is corrupting the code when I paste it into my post?

    Failing that we'll need to get Rich to take a look, I'm not good with javascript!


    EDIT:

    Team Torque steer, on your site if I right click the copyright message comes up but if I click ok it leaves behind the original right click menu (the one you are trying to prevent access to)

    So all I have to do is right click, press "ok" and then select "copy image" from the menu.

    That's in FireFox, not sure if it's the same for IE but it does mean your copyright message is redundant

  2. #22
    Join Date
    Dec 2007
    Location
    Leicester Forest East
    Posts
    1,723

    Default

    Quote Originally Posted by petad View Post
    Anyway, what's to stop someone taking a screen dump, then cropping out the image they want using Photshop or similar? Not that I've ever done it myself...
    Afternoon Pete,

    Nothing at all and infact its easier than that. Just view the page source from the browser and make a note of the path to the images, type that into the brower (will not use my xxx example ) then you can view the image and save it.

  3. #23
    Join Date
    Sep 2007
    Location
    Nottingham
    Posts
    95

    Default

    That seems to be working now ..... but should you get the copyright message if you right click an image ?? I cant right click but no message ??

    Thanks

    Martin

  4. #24
    Join Date
    Nov 2008
    Posts
    76

    Default

    Quote Originally Posted by TeamTorquesteer View Post
    That seems to be working now ..... but should you get the copyright message if you right click an image ?? I cant right click but no message ??

    Thanks

    Martin

    To get the message you need to add in Richard's code from the other thread, I'm not sure how to do that correctly but Mike seems to have been able to do that and make it work so maybe ask him? I'm not a coder and I wouldnt like to try combining them lol

    I personally prefer it without the pop up message, much more discrete

  5. #25
    Join Date
    Sep 2007
    Location
    Leicestershire
    Posts
    1,039

    Default

    Quote Originally Posted by TeamTorquesteer View Post
    Yep, thats where mine is!
    And mine too.

  6. #26
    Join Date
    Sep 2007
    Location
    Leicestershire
    Posts
    1,039

    Default

    Quote Originally Posted by Dave View Post
    Afternoon Pete,

    Nothing at all and infact its easier than that. Just view the page source from the browser and make a note of the path to the images, type that into the brower (will not use my xxx example ) then you can view the image and save it.
    Thanks for the tip, Dave . As previously said, for anyone determined and knowledgeable enough, you can't stop them.

  7. #27
    Join Date
    Sep 2007
    Location
    Leicestershire
    Posts
    1,039

    Default

    Quote Originally Posted by LeonardsGifts View Post
    To get the message you need to add in Richard's code from the other thread, I'm not sure how to do that correctly but Mike seems to have been able to do that and make it work so maybe ask him? I'm not a coder and I wouldnt like to try combining them lol
    Just place the scripts one after another, and it works. No need to combine.

  8. #28
    Join Date
    Sep 2007
    Location
    Nottingham
    Posts
    95

    Default

    All now working fine !! The copyright popup when you right click on a picture only seems to work on IE ......... cant get it to work on Firefox.

  9. #29
    Join Date
    Aug 2008
    Location
    Bournemouth
    Posts
    210

    Default

    Sorry guys,

    Not had chance to play withit as its been a bit manic.... I am not sure whats going wrong in your respective sites to be honest, I have placed it in mine as is.... and though I admit the (c) does not pop up in firefox but it still disarms the right menu and the browser as a deterant and no text...... I would be interested if you guys are able to get the right click sub menu or the browser copy, etc., in Firefox as it works okay in mine... if you load up my site (http://bp43.betapark.co.uk) just incase there is something not quite right with my firefox....

    If it works bar the popup I will work on the pop up for firefox when I get chance. As we say, this is just a heavy initial deterrant, its easy for those that want what you got, bit like my ex wife, they will always find away.

  10. #30
    Join Date
    Sep 2007
    Location
    Leicestershire
    Posts
    1,039

    Default

    Quote Originally Posted by mikeyred View Post
    its easy for those that want what you got, bit like my ex wife, they will always find away.
    Lol

    Been there, done that, got the t-shirt.

  11. #31
    Join Date
    Sep 2007
    Location
    Leicestershire
    Posts
    1,039

    Default

    Quote Originally Posted by mikeyred View Post
    I would be interested if you guys are able to get the right click sub menu or the browser copy, etc., in Firefox as it works okay in mine... if you load up my site (http://bp43.betapark.co.uk) just incase there is something not quite right with my firefox....
    In Firefox I don't get the pop-up on your site, but I also don't get the context menu, so it still does the job.

  12. #32
    Join Date
    Aug 2008
    Location
    Bournemouth
    Posts
    210

    Default other scripts

    Thanks for that "Oh Supportive One"
    I will get back to you with the updates on that script. I have some other scripts that will save you some hassle but I need time to check them in the various browsers, then I will post them.

  13. #33
    Join Date
    Nov 2008
    Posts
    76

    Default

    Slight problem with the above script!

    In firefox it prevents the user from clicking a text box such as the search box and will not allow you to type any text in! I've checked using different browsers and sites, the green bear uk site also has this problem.

    Can someone who's good with JavaScript have a look and correct the code please?

  14. #34
    Join Date
    Sep 2007
    Location
    Leicestershire
    Posts
    1,039

    Default

    Quote Originally Posted by LeonardsGifts View Post
    Slight problem with the above script!

    In firefox it prevents the user from clicking a text box such as the search box and will not allow you to type any text in! I've checked using different browsers and sites, the green bear uk site also has this problem.
    Eeeek! You're right - I've just pulled the script until someone far cleverer comes up with a fix (the last language I programmed in was RPG - this new fangled stuff )

    I now have the right click context menu problem after closing the copyright window. Can't win...

    And I've just noticed our original script doesn't work at all in Opera.
    Last edited by petad; 13-11-2008 at 18:18.

  15. #35
    Join Date
    Sep 2007
    Location
    Nottingham
    Posts
    95

    Default

    In firefox it prevents the user from clicking a text box such as the search box and will not allow you to type any text in! I've checked using different browsers and sites, the green bear uk site also has this problem.
    Well spotted !! Gone back to the original script and also have the right click context menu problem after closing the copyright window !

    Step forward a java script expert :-)

    Martin

  16. #36
    Join Date
    Aug 2008
    Location
    Bournemouth
    Posts
    210

    Default

    Hi Guys,

    Sorry about this. I only checked it out in IE.... if you remove the second part and just keep the right click disable, it will take you back to what you had.

    <SCRIPT language=JavaScript>
    <!--
    var message="Copyright ©2008 Green Bear UK. All Rights Reserved.";
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!docum ent.all)){
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}
    document.oncontextmenu=new Function("return false")

    function noclic(clic) {
    var msg="Copyright ©2008 Green Bear UK. All Rights Reserved.";
    if (navigator.appName == 'Netscape' && clic.which==3) {
    alert(msg);
    return false;}
    else
    if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
    alert(msg);
    return false;
    }
    return true;
    }
    if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown = noclic;
    // -->
    </SCRIPT>

    This is just basically the same as Richards and all the other ones out there, I have put it in my template/header and it is working. If you have any problems with the script here, go to my source code and take it from there.

    We will work on the second part, we know it works perfectly in IE/Netscape, just need to crack the Firefox & Safari.

    Sorry to mess you Guys about with this......

  17. #37
    Join Date
    Nov 2008
    Posts
    76

    Default

    Right you should be able to copy and paste the code below without it being corrupted.

    This is the no right click and no left click code for images and texts as polished and finished by MikeyRed. The code below does not give you a pop up message (I'll post that one in a moment).

    It works with FF and IE but I haven't tested it anywhere else yet.

    Code:
    <SCRIPT language=JavaScript>
    <!--
    function clickIE() {if (document.all) {alert(message);return false;}}
    function clickNS(e) {
    if (e.target.type == "text") { return true; }
    if (e.target.type == "textarea") { return true; }
    
    if (e.target.type == "submit") { return true; }
    if (e.target.type == "checkbox") { return true; }
    if (e.target.type == "radio") { return true; }
    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=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    document.oncontextmenu=new Function("return false")
    
    function noclic(clic) {
    if (navigator.appName == 'Netscape' && clic.which==3) {
    alert(msg);
    return false;}
    else
    if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
    alert(msg);
    return false;
    }
    return true;
    }
    if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown = noclic;
    // -->
    </SCRIPT>
    
    <script>
    function disableselect(e){
        if (e.target.type == "text") { return true; }
        if (e.target.type) =="textarea") { return true; }
        if (e.target.type == "submit") { return true; }
        if (e.target.type == "checkbox") { return true; }
        if (e.target.type == "radio") { return true; }
        if (e.target.type == "password") { return true; }
        return false;
    }
    
    function reEnable(){
    return true
    }
    
    //if IE4+
    document.onselectstart=new Function ("return false")
    
    //if NS6
    if (window.sidebar){
    document.onmousedown=disableselect
    document.onclick=reEnable
    }
    </script>

    And same code again with pop up message to annoy/inform your customers/thief!

    Code:
    <SCRIPT language=JavaScript>
    <!--
    var message="Copyright ©2008 Your Company LTD. All Rights Reserved.";
    function clickIE() {if (document.all) {alert(message);return false;}}
    function clickNS(e) {
    if (e.target.type == "text") { return true; }
    if (e.target.type == "textarea") { return true; }
    
    if (e.target.type == "submit") { return true; }
    if (e.target.type == "checkbox") { return true; }
    if (e.target.type == "radio") { return true; }
    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=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    document.oncontextmenu=new Function("return false")
    
    function noclic(clic) {
    var msg="Copyright ©2008 Green Bear UK Ltd. All Rights Reserved.";
    if (navigator.appName == 'Netscape' && clic.which==3) {
    alert(msg);
    return false;}
    else
    if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
    alert(msg);
    return false;
    }
    return true;
    }
    if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown = noclic;
    // -->
    </SCRIPT>
    
    <script>
    function disableselect(e){
        if (e.target.type == "text") { return true; }
        if (e.target.type == "textarea") { return true; }
        if (e.target.type == "submit") { return true; }
        if (e.target.type == "checkbox") { return true; }
        if (e.target.type == "radio") { return true; }
        if (e.target.type == "password") { return true; }
        return false;
    }
    
    function reEnable(){
    return true
    }
    
    //if IE4+
    document.onselectstart=new Function ("return false")
    
    //if NS6
    if (window.sidebar){
    document.onmousedown=disableselect
    document.onclick=reEnable
    }
    </script>
    EDIT at 15:51 on 18/11/08 I've just added a missing line of code in so that the "message" box on your "contact us" forms should now work
    Last edited by Zebra; 18-11-2008 at 14:58.

  18. #38
    Join Date
    Sep 2007
    Location
    Nottingham
    Posts
    95

    Default

    That seems to be working fine !!

    Thanks

    Martin

  19. #39
    Join Date
    Nov 2008
    Posts
    76

    Default

    Slight problem, the above scripts now do not prevent clicking and copying of the text.

    This is because to be able to use the "message" box on the "contact us" form we have to enable "textarea" to be allowed, this unfortunately then applies to the rest of the site!

    It may be possible to add an exemption in and I'm looking into that possibility now. So for the time being the above scripts only inhibit image copying.

  20. #40
    Join Date
    Sep 2007
    Location
    Nottingham
    Posts
    95

    Default

    Slight problem, the above scripts now do not prevent clicking and copying of the text.
    It doesnt allow me to click/copy text ?? Tried it both in IE and FF.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Copyright Issues
    By Wayne in forum Bluepark Technical Discussion
    Replies: 6
    Last Post: 09-12-2009, 12:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts