Results 1 to 8 of 8

Thread: Disable right click on specific image

  1. #1
    Join Date
    Feb 2008
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Disable right click on specific image

    Yes again and again

    I'm looking for javascript that would disable right click only on ONE image on my website.

    I search google but without success

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Why? No matter what you do it'll be easy to get around and steal that image.
    Anyway, you should be able to just get around that by doing one of two things:
    1. use an existing script and use the onClick attribute of the image tag.
    2. place another transparent element on top of the image

    Or, to get smart here, why not just make it a background of a region so it isn't available to be selected?
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Feb 2008
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I know very well that there isn't 100% image steal protection.

    But users on my site aren't aware that there are some photos that have copy rights.

    That's why I'm looking simple script that would simple warning non-aware users about protected images with disabling right click on them.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Watermarks-- they can't be removed very easily (photo manipulation is possible, but hard work), and will clearly make it copyrighted.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Add this to your footer of the page:
    HTML Code:
    <p>Copyright &copy; 2008 [your company name]. All images on this site are protected by copyright law, so no stealing without explict permission.</p>
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  6. #6
    Join Date
    Feb 2008
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Did that but you can't believe that people doesn't want to see it.

    I find perfect solution for me:
    Code:
    <img style="background:url({media_src}) no-repeat; border: 0px solid black" src="/images/gallery/transparent.gif" width="{width_preview}" height="{height_preview}" style="" GALLERYIMG="no" alt="{image_name}"  />
    Check it out:
    http://www.slo-foto.net/galerija_slika-33836.html

  7. #7
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Hit Print Screen and you got the image.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  8. #8
    Join Date
    Feb 2008
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Yeah I know but "amater" users don't have time or don't know how to do that.

    I quote again:
    I know very well that there isn't 100% image steal protection.

Bookmarks

Posting Permissions

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