How to stop right click on images

L

LJM

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
 
D

Dave Smith

[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
 
D

Dave Smith

[This followup was posted to microsoft.public.frontpage and a copy was
sent to the cited author.]

[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)
{

Sorry the url for the program is
http://www.prenap.com/PictureProtect.asp

wetink
 
N

neutrino

another option.....

does any picture really have to be seen in the "direct flat front
facing view" ? as youd get by just inserting th eimage on the web
page --- how about being a little more inventive in Photoshop, and
say... create the image so it looks like a framed and hung on the wall,
and on a kind of side angle, as though being viewed a few paces to one
side, it'd still look good, (maybe even better in a realistic sort of
appearance?) but at the same time - unlikely to entice anyone to copy
it ~ since it's no a big flat front on view of the actual picture~
just a thought anyway :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top