forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: fozi on June 30, 2007, 08:59:00 pm
-
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>
-
eg.
(R.C. Menu) Disable right click and show your custom menu (Cross Browser) (http://forum.coppermine-gallery.net/index.php?topic=33377.0)
Prevent downloading of pics - transparent gif overlay (http://forum.coppermine-gallery.net/index.php?topic=33782.msg157813#msg157813)
Disable Right Click - Theme mod (http://forum.coppermine-gallery.net/index.php?topic=38634.msg188173#msg188173)
-
thanks!!
-
thanks this worked a treat it is just what i was looking for