Kevan
2006-01-08, 2:26am
Stealing nice graphics and images is a widespread problem. Unscrupulous web site owners will steal your nice graphics or pictures and pretend it is theirs.
You can protect your stuff 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):
<!-- Insert between the HEAD tags -->
<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>
You can protect your stuff 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):
<!-- Insert between the HEAD tags -->
<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>