Click to See Complete Forum and Search --> : picture help
warbishop
12-15-2002, 12:20 AM
Is there a way to keep someone from downloading or copying or saving(whatever) a picture I have on my webpage. You know, so it wont get "save pic as" and all that stuff.
I was wondering... if so.., can you please post the commands or script for that. I would really appreciate it.
Thanks..
war
ShrineDesigns
12-15-2002, 12:26 AM
this prevents right clicks; but anyone can still download your graphics.
<script language="JavaScript">
var msg="Right Click Disabled!";
function disableIE() {if (document.all) {alert(msg);return false;}
}
function disableNS(e) {
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(msg);return false;}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;
} else {
document.onmouseup=disableNS;document.oncontextmenu=disableIE;
}
document.oncontextmenu=new Function("alert(msg);return false")
</script>
warbishop
12-15-2002, 12:32 AM
thanx buddy.