javod.com
Nov
2010
17
jQuery: Disable right click and drag on images

Sometimes you get a client that just wants to do what they want to do no matter the reasons they shouldn't.

In the case of disabling right click the short answer is: Don't.

The long answer is there is no way to prevent someone from taking images off your site. You can slightly thwart users, but it is against the very principles of the way the internet works, and is considered bad practice. Typically only websites that are either unprofessional or shady use these techniques.

Now, with that, sometimes you'll get a person who says, "just do it anyway." So here is some jQuery to make this an easy job for you.


tuesday, 29th november

XeBii

xnys.blogspot.com/
Thanks!
i tried alot of scripts but this actually works :)
thanks alot
wednesday, 22nd february

Dakkon


Hi, I have a problem... What if the image should be clickable?
 
your name: 
url: 
comment: 
  required: copy the following code to post
test