Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Disabling Right Click on all photos and thumbnails Help with code?  (Read 2687 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.027 seconds with 19 queries.