johnfarrar
Well-known member
Breaching copyright is certain to raise the hackles and it has created a fair discussion here. For those interested this is the code I use on my picture pages.
function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 event.button == 3)) { alert("Please respect my copyright. Thank you."); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right;
End -->
Of course you can change the wording to suit.
I realise it is no defence against the ardent hacker but for most I hope seeing the "Please respect my copyright. Thank you." message will make them stop and think.
Watermarking would be better but is expensive and I could not justify that. The anti right-click and a copyright message will have to do for me.
Regards
John
http://www.soqotra.info
function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 event.button == 3)) { alert("Please respect my copyright. Thank you."); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right;
End -->
Of course you can change the wording to suit.
I realise it is no defence against the ardent hacker but for most I hope seeing the "Please respect my copyright. Thank you." message will make them stop and think.
Watermarking would be better but is expensive and I could not justify that. The anti right-click and a copyright message will have to do for me.
Regards
John
http://www.soqotra.info