Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Disabling Right Click on all photos and thumbnails Help with code?  (Read 2699 times)

0 Members and 1 Guest are viewing this topic.

fozi

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

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>
« Last Edit: June 30, 2007, 10:08:02 pm by TranzNDance »
Logged

fozi

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Disabling Right Click on all photos and thumbnails Help with code?
« Reply #2 on: June 30, 2007, 09:38:44 pm »

thanks!!
Logged

aaronabbey

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Disabling Right Click on all photos and thumbnails Help with code?
« Reply #3 on: January 20, 2008, 10:35:29 pm »

thanks this worked a treat it is just what i was looking for
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.