English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How do I prevent people from copying my graphic on my website? I understand that pictures can be stolen no matter what with the print screen button but do that wont let them see the animation. So how do I prevent the right click function?

2007-03-11 11:58:46 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

but doing that~

2007-03-11 11:59:14 · update #1

2 answers

this needs to be placed between your tags


var message="CHANGE THIS TO THE MESSAGE DISPLAYED WHEN USER RIGHT CLICKS";

// Don't edit below this line!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

2007-03-13 16:32:48 · answer #1 · answered by glynn.alexander 3 · 0 0

You can use Java script to do this. Here is a link to one
http://www.codelifter.com/main/javascript/norightclick1.html

If you do a search for " java prevent right click" you will find many more.

You can also embed your images in a css file that simply shows your image without the image being clickable at all. Basically you layer the image below a division that is empty.

However your more experienced users can still find away to steal you stuff if they really want it.

2007-03-12 09:55:51 · answer #2 · answered by Tracy L 7 · 0 0

fedest.com, questions and answers