Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 10-26-2005, 13:35   #1 (permalink)
LJM
Civilians

 
Default How to stop right click on images

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 10-26-2005, 13:36   #2 (permalink)
Dave Smith
Civilians

 
Default Re: How to stop right click on images

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

In article <sa5nk1tjna8oa7blus9bdg33o1r7kkcdj5@4ax.com>, lmphoto@aol.com
says...
> 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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-26-2005, 13:36   #3 (permalink)
Dave Smith
Civilians

 
Default Re: How to stop right click on images

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

In article <MPG.1db5839baf32acf9989680@newsgroups.comcast.net >,
wetink444@hotmail.com says...
> [This followup was posted to microsoft.public.frontpage and a copy was
> sent to the cited author.]
>
> In article <sa5nk1tjna8oa7blus9bdg33o1r7kkcdj5@4ax.com>, lmphoto@aol.com
> says...
> > 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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Stop, stop shopping' Snowden Chit-Chat 2 12-16-2007 17:53
Re: Displaying Images on Mouse Click leef_me Microsoft Applications 2 08-08-2005 03:00
P0442 + click,click,click on 2001 Cadillac STS OCG Automotive 3 05-31-2005 15:00
How to stop ppt resizing images? Tumbleweed Microsoft Applications 2 05-18-2005 15:00
Re: how do you transpose images over existing images? Sonia Microsoft Applications 5 03-03-2005 19:00


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 06:27.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.78038 seconds with 19 queries