PDA

View Full Version : Disable right click on images


Footman
02-02-2011, 12:11 AM
I've found a bit of code that will supposedly disable right click ONLY on the images and I'd like to try it on my vB install. This is the link - http://www.dynamicdrive.com/dynamicindex9/noright2.htm - and it says to add the code just above the </body> tag. But being vB is more convoluted than static html sites, I'm betting this isn't THAT easy. However I am HOPING it is.

Does anyone know which template(s) this should be added to?

Oh and please, I already understand all opinions as to the benefits, or lack there of, by doing this. I understand it's easy enough to circumvent, changes the user experience and so on. I'm still going to run it and test it out on my live site if possible and determine if I'll keep it in place after a short "beta" run.

Thanks for any help

wpeloquin
02-03-2011, 06:57 PM
I would put the code in it's own java file, upload it to your server, and then place

<script type="text/javascript" src="path/to/file.js"></script>
in the "headinclude" template

Footman
02-04-2011, 06:18 PM
Thanks, I'll give it a shot.

Footman
02-16-2011, 02:48 PM
:( Not working for me.

I copied the code to it's own .js file and uploaded it then put
<script type="text/javascript" src="path/to/file.js"></script>
at the bottom of the "headinclude" template of the parent theme I'm using