How can i make the images on my website so that you cannot click them or drag them?

28th of October 2013 0

How can i make the images on my website so that you cannot click them or drag them?

Is there a way to make it so images on my site cannot be clicked and draged or saved? In orther words so you cannot take them? If so can you give me an example of how to do it using CSS and/or HTML. Or is there a different language I must use to do this? Thank you.

Best answer:

Answer by Puyttre
Hi,

I use jQuery (a form of JavaScript) to disable right clicks on my images. To do this is very simple.

All you need to do is download jQuery from http://jquery.com/ (assuming you save it as jquery.js) and put in in the same folder as your html file. Then put the following code in your head tag:

– EDIT — Yahoo Answers doesn’t like jQuery, so I put it in this pastie url : http://pastie.org/3623641

If you’re having trouble downloading jQuery, right click on the “Download jQuery” button and choose “Save Page As”, then place it in the correct folder.

Add your own answer in the comments!

Filed under § jquery forms — Tagged with , , , , ,

Share it!

Was it good for you to?

Sponsors

Support for the site!

No sponsors at the moment.



Your opinion matters. Add it below.


Tip: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent comments

Categories



Copyright jqueryui.info since 2010. All rights reserved. Design and the Absolute Theme by Tommie Hansen.