PDA

View Full Version : Disable right click on specific image



Lucifix
02-21-2008, 09:14 AM
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 :confused:

djr33
02-21-2008, 09:32 AM
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?

Lucifix
02-21-2008, 09:36 AM
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.

djr33
02-21-2008, 09:54 AM
Watermarks-- they can't be removed very easily (photo manipulation is possible, but hard work), and will clearly make it copyrighted.

tech_support
02-21-2008, 11:09 AM
Add this to your footer of the page:


<p>Copyright &copy; 2008 [your company name]. All images on this site are protected by copyright law, so no stealing without explict permission.</p>

Lucifix
02-21-2008, 11:11 AM
Did that but you can't believe that people doesn't want to see it.

I find perfect solution for me:

<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

tech_support
02-21-2008, 11:12 AM
Hit Print Screen and you got the image.

Lucifix
02-21-2008, 11:15 AM
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.