Forum Moderators: mack

Message Too Old, No Replies

Behavior on Right Click

How to get behavior on RightClick.

         

Befuddled

6:03 am on Jun 29, 2004 (gmt 0)

10+ Year Member



How can I get Dreamweaver MX to give me a javascript behavior on a Right Click of the mouse. It is not listed in the menu and did work when I tried just writing in onRightClick.

I'm new to the forums and just stumbling along learning with Dreamweaver.

whoisgregg

5:17 pm on Jun 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, Befuddled!

Try looking for a behavior on the macromedia web site for "disabling right click" and look at how they do that. It's not supported across all browsers, but it is possible to do some right click recognition in newer browsers with javascript enabled.

You'll probably find yourself posting in the Javascript forum [webmasterworld.com] here for more specific help. There's some very helpful folks who can help you debug javascript. :)

Befuddled

4:33 am on Jul 1, 2004 (gmt 0)

10+ Year Member



Thanks, I'll give that a try. I have some javascript that is supposed to work for a behavior called StopThief which makes it impossible to copy photos/graphics from one's site. However when I tried to use it, it didn't work. I thought it might be related to the CSS template I used from Dreamweaver.

Befuddled

whoisgregg

6:17 pm on Jul 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should be advised that protecting your images is practically impossible. It's been discussed many times here before and no true solution has been found. Case in point: Can't a user just take a screenshot of your page to get your image?

If you'd still like to implement some protection scheme, here's plenty to read [google.com] about how to do it. :)

The Grizzler

6:43 pm on Jul 1, 2004 (gmt 0)

10+ Year Member



We use a javascript "No Right Click" on our site. If that's all you require send me a stickymail and I will give you the details. You can then pinch the script off our homepage.

Grizz

whoisgregg

1:15 am on Jul 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's worth mentioning again that a javascript "No Right Click" script will only deter the casual visitor and it does not actually prevent a user from downloading your images.

In fact, because they are viewing the image, they have already downloaded your image and need only retrieve it from their computer's cache file.

If they are viewing it -- you've already given it to them. :)

Krapulator

4:18 am on Jul 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>which makes it impossible to copy photos/graphics from one's site

Guess again chief :)