Steve Miller TX
In light of the recent rampage of storm photo thieves and rustlers, I thought this would be relevent to all chasers with a website. While not a total prevention, this will help discourage those wanting to swipe your photos from your website using the left click of a mouse. They'll have to work at it. Here is the javascript to do that:
<script>
msg="Nasty message goes here";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(msg);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(msg);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
To see this in action, go to: http://www.texastailchaser.com/2005blog/20...50531/index.htm
<script>
msg="Nasty message goes here";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(msg);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(msg);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
To see this in action, go to: http://www.texastailchaser.com/2005blog/20...50531/index.htm