[This followup was posted to microsoft.public.frontpage and a copy was
sent to the cited author.]
I post images of weddings on my photography web site using Photoshop
CS2. It, unfortunately, allows copying by right click. How can I
stop this?
ljm
Here are a couple of ways to deal with it.
The first is a web site that offers a program that will keep people from
stealing your pictures, but allow them to still right click (so they can
use other right click options) It's freeware.
The other options (kills right clicking) is a script that will stop it.
Instructions on the bottom.
<SCRIPT LANGUAGE="JavaScript1.1">
<!--
function right(mousebutton)
{
var msg1 = "Hey!! Look but don't touch!!";
var msg2 = "Isn't this the most annoying script since BLINK?!";
if (navigator.appName == 'Netscape' && mousebutton.which==3)
{
alert(msg1);
return false;
}
else
if (navigator.appName == 'Netscape' && mousebutton.which==1)
{
alert(msg2);
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button
== 2)
{
alert(msg1);
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button
== 2)
{
alert(msg2);
return false;
}
return true;
}
document.onmousedown = right;
// -->
</SCRIPT>
********************************************
This code goes inside the code in your HTML.
In the middle of the code you will see a couple lines that look like
this:
var msg1 = "Hey!! Look but don't touch!!";
var msg2 = "Isn't this the most annoying script since BLINK?!";
This is where you add your own message. Where you see, "Hey!! Look but
don't touch!!" and "Isn't this the most annoying script since BLINK?!"
you can change the words inside the quotations to whatever you want them
to be. This is what people will see in the pop up box when they try to
right click on your page.
Problem: When I tried this script in Mozilla the popups worked fine but
it didn't keep the menu from popping up. People may still be able to
right click and double click when using the Mozilla browser.
wetink