Secrets to protect your images and graphics
Stealing nice graphics and images is a widespread problem. Unscrupulous web site owners will steal your nice graphics and pretend it is theirs. If you paid for some custom graphics and then you find out that other people simply copy them for their own use, you can get frustrated!
You can protect your graphics from being stolen by inserting a javascript code in your pages containing your custom-made images.
Enough said, here's the code (place it between the HEAD tags, but you will have to copy it from the source code - and this is the weakness):
<SCRIPT language="JavaScript">
<!--
var sorry="Sorry, that function is disabled."
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(sorry);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(sorry);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</SCRIPT>
__________________
arps
|