Click to See Complete Forum and Search --> : I Need Help!!!!!!
amyc4you
03-12-2003, 12:16 PM
I need help... I dont know where to look. I have pix on my webpage that i dont want anyone to be able to get off.. you know how you can right click and take pix off pages? Well i wanna make it so a message pops up instead. Can anyone help? PS I dont know 1 thing about HTML. LOL.
-Amy (amyc4you@aol.com):mad:
AdamBrill
03-12-2003, 12:31 PM
There is no way to keep people from taking your images(besides not putting them online...). No right-click scripts only annoy the users and don't keep people from actually taking the images anyway. A couple of other ways people can get your images are:
1. Take them out of the cache
2. Use a graphics program to print screen
3. Click file->Save As
4. Click view->Source and get the actual address to download the image
5. Etc.
As you can see, there are a lot of other ways that people can take your images. I'm sorry, but there just really isn't any way to protect them...
khaki
03-12-2003, 01:05 PM
Hi Amy...
Your images really won't be safe...
but you asked for a script that produced a message on right-click.
That's all this does (a minor deterrent - nothing more)
Good luck
k
(oh... and usually I agree that you don't want to annoy visitors to your site... but if they are looking to steal your stuff... then you might as well annoy them while they are at it. lol)
---------------------
<HTML>
<HEAD>
<TITLE></TITLE>
<script language="Javascript">
doink = "Hey! Don't steal my stuff!";
appV = parseInt(navigator.appVersion)
Nscape = navigator.appName=="Netscape"
MIE = navigator.appName=="Microsoft Internet Explorer"
function bonk(e) {
if (Nscape && e.which > 1){
alert(doink)
return false
} else if (MIE && (event.button >1)) {
alert(doink)
return false;
}
}
document.onmousedown = bonk;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (Nscape && appV<5) window.onmousedown = bonk;
</script>
</HEAD>
<BODY>
<IMG SRC="yourImg.gif">
</BODY>
</HTML>