How can I protect the images on my website?

And here is the 'no right clicks' script.
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 type="text/javascript">

var msg="mouse right click disabled.nn(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>

Please note: the above script does not work in PageWizard.

  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Related Articles

Optimizing Your Images

bitmapped (or rasterised) graphics When producing new versions of a graphic from the original,...

How to add a Favorites icon to my site

Step 1 - creating the image Using your favorite graphics software, create a 16x16 pixel image...

Favicon not showing up in IE?

There are a few solutions for this problem.* Add the page to your favorites. If you already have...