PDA

View Full Version : Image protection idea nd help needed



poppa_bear
08-28-2005, 05:28 PM
Ok I know it is impossible to 100% protect images and am not planning to try. but I would like to find a way to make it harder to steal full sized images.

I have an idea but not the know how to pull it off alone. I saw a page where there were thumbnails and when you put your mouse over them off to the side a larger image showed up. What I'd like to do is find a way to do that but when they right click the thumbnail they get a thumbnail sized image saved to their comp and not the full sized one. Also I'd like to set it up so they can't easily find the url for the addy in the code.

Again I know it is impossible to protect an image but the average user should have a hard time doing it. Any idea's?

Twey
08-28-2005, 06:30 PM
<script type="text/javascript">
function preview(img) {
document.getElementById("bigimg").src = img.src.substring(0,lastIndexOf('.')) + unescape("%5f%62%69%67") + img.src.substring(lastIndexOf('.'), img.src.length());
}
</script>
<img id="bigimg" src="blank.jpg"/>
<img onmouseover="preview(this);" onmouseout="document.getElementById('bigimg').src='blank.htm';" src="image.jpg"/>

This will cause any image as shown above to be previewed with "_big" prepended to the file extension.
image.jpg becomes image_big.jpg, monkey.png becomes monkey_big.png &c.