|
You can stop right clicks with a script (copy and paste it from this page if you want to) in the HEAD section of your page.
<script language="JavaScript">
var msg="mouse right click disabled.\n\n(or any message you want)";
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>
And you could use frames as well to prevent the code on your page being viewable when the toolbar View button is used.
And if you really want to keep your images 'safe', use a graphics editor to add your site URL to them. Why would someone want to re-use an image on their site that obviously came from somewhere else?
|