Am 26.04.2011 06:19 schrieb Chetan Crasta:
How do you guys protect your images on the web?
I normally don't bother trying to "protect" images because all the
methods can be circumvented. But if a client insists on it, I use this
technique:
I overlay an absolutely positioned, transparent, div over the image.
Right clicking on the image is then not possible. As usual, IE7 and
IE8 behave differently. In these browsers, a transparent div is
ignored when right clicking. The workaround for this is to give the
div a background color and then set the opacity to 0 to make it
transparent.
A similar technique is to use a transparent gif to overlay instead of a
transparent div. The effect is then not to make downloading via
right-click impossible, but rather to confuse the user, as after having
right-clicked and downloaded the image file, there is no actual image
inside it.
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/