Zen Cart Logo
Forums / General Questions / How to disable right-click?

How to disable right-click?

Locked

Views: 2,392

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Jul 2007, 2:55 PM
#1
ghs215 avatar

ghs215

New Zenner

Join Date:
Jul 2007
Posts:
32
Plugin Contributions:
0

How to disable right-click?

Hello all,

Where is the best place to stick the code to disable right-clicking?

I have found several scripts to disable right-clicking, do you have any good ones or reccomendations?

Thanks!:smartalec:

12 Jul 2007, 3:19 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How to disable right-click?

As you say, there are javascripts available to do this, and they're pretty straightforward so it's hard to recommend one over another.

That said this is generally frowned upon in web design circles as it removes a whole load of legitimate functions and access to browser add-ins, some with accessibility implications.

12 Jul 2007, 3:22 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to disable right-click?

...Back on the shelf?

Right-click disable won't stop anyone who really wants to steal one of your images, but it will annoy any visitor who actually uses right-click functions for navigating.

12 Jul 2007, 3:36 PM
#4
ghs215 avatar

ghs215

New Zenner

Join Date:
Jul 2007
Posts:
32
Plugin Contributions:
0

Re: How to disable right-click?

gjh42:

...Back on the shelf?

Right-click disable won't stop anyone who really wants to steal one of your images, but it will annoy any visitor who actually uses right-click functions for navigating.

I know. I only need to disable copying of the pictures for certain products as required by the company that owns the pictures.

Any Ideas how to do this only on certain products?

12 Jul 2007, 3:38 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How to disable right-click?

Why not watermark the images. If you have Image Handler installed, I believe that it can do this automatically for you.

12 Jul 2007, 7:38 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: How to disable right-click?

kuroi:

Why not watermark the images. If you have Image Handler installed, I believe that it can do this automatically for you.

Kuroi's right. IH will do that for you. It's in use on the site in my sig. Right-clicking isn't the only way to get images, anyway.