Click to See Complete Forum and Search --> : To clear a graphic when copied
JackyAJT
06-14-2004, 01:52 AM
I know this may seem like a dumb question. I know it can be done but do not know how. I really dont like the right click function and know there is no way to fully prevent someone copying graphics. What I am trying to do is if they right click and save a graphic have it come up clear with no image. Never thought about it before but want to try to prevent pictures of my family being copied and altered.
zingmatter
06-14-2004, 10:29 AM
Here's one way of doing it: by overlaying a blank gif image directly ontop of the main image useing CSS. If you right-click and select save image as... you end up saving the blank.gif file.
<div style="position: absolute;
background-image: url('blank.gif');
z-index: 50;
top: 10px;
left: 10px;
width: 50px;
height: 50px">
top invisible image (that gets saved)
</div>
<div style="position: absolute;
background-image: url('test.gif');
z-index: 1;
top: 10px;
left: 10px;
width: 50px;
height: 50px">
lower visible pic (that gets seen)
</div>
You could hide the name of the actual file by putting the CSS into an external CSS file and giving it an obscure name.
Other things like using javascript to disable the right-click (which doesn't really work anyway) just annoys people and is more likely to commit nutters to REALLY try to get at the image.
What ever you choose to do, ultimately anyone can simply press the 'Print Screen' button on their keyboard and they've got it copied to their clipboard anyway.
If you don't want people mucking around with photos of your family then either don't put the photos there in the first place, or restrict access to the page to only those who you want to see it such as a server-side scripted password, or bury the image page in several sub-directories of complex names so it can't be stumbled upon and needs a lengthy url to locate (which you email to you users).
Hope this helps
Aronya1
06-15-2004, 02:07 PM
Once that image is viewable on my computer, I have it in its entirety. I do not need to find it on the server, only on my own computer.
Either don't post the pictures, or put up really crappy quality images that people wouldn't want to mess with. Also, if these are image that people might want to use on their own sites, you can add text across the image to spoil it.
zingmatter
06-15-2004, 03:32 PM
Once that image is viewable on my computer, I have it in its entirety. I do not need to find it on the server, only on my own computer.
Oh yeah, good point. Didn't think of that :rolleyes:
JackyAJT
06-15-2004, 03:42 PM
thanx. I know it wont stop her and I really am not worried just wanted to frustrate her some. It seems of all the families that share pics on the internet she has focused on me sharing mine. I enjoy my web sites and am proud of my family. One thing I have learned though is she doesnt book mark pages so if she dont see the link she thinks the page is gone. But thanks for both your inputs
Aronya1
06-15-2004, 04:02 PM
Ooo!!! Family feuds! What fun!
Now that we have a little more insight into what you're doing, I'd say go with zing's clear overlay suggestion. It's probably enough to do what you want.
JackyAJT
06-15-2004, 07:46 PM
LOL wish it was a family thing I dont even know this person she been at this game for over 2 years and I refuse to let her get to me