Disabling Right Click on all photos and thumbnails Help with code? Disabling Right Click on all photos and thumbnails Help with code?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Disabling Right Click on all photos and thumbnails Help with code?

Started by fozi, June 30, 2007, 08:59:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fozi

Hey all.. Im sure this topic has come up before however I have had little luck locating an answer.


I want to try my  best to disable right click. I KNOW RIGHT CLICK DISABLING IS EASY TO GO AROUND!.. But anything i can do to make it harder for people I will.. I wanted to know where i can place one of these two codes below.. Im not sure if I can even use these..

I would rather use the first one.. if I can please tell me where I can place it.. what file.. ect.. If i cant use this please tell me where i can place the javascript

thanks a lot


the first one

<span style="background-image: url(images/my_image.jpg)"><img src="images/transparent.gif" width="200" height="150" border="0" alt="My protected Image."></span>


the second one if the above cant be used
<script LANGUAGE="JavaScript">
<!--
function click() {
if (event.button==2) {
alert('Right Click Option Not Available!');
}
}
document.onmousedown=click
// -->
</script>



aaronabbey

thanks this worked a treat it is just what i was looking for