Page 1 of 1
block right clic in the plugins
Posted: 06 Oct 2009, 18:22
by yatoula
Hi,
i want to block the right clic when i open the images in a gallery.
look here :
http://sict-packaging.com/site/boxes.html it's when i open the image, i don't now if it's possible
Re: block right clic in the plugins
Posted: 06 Oct 2009, 20:28
by Jan
Hi, no as this protection doesn't make any sense (everybody can easily disable javascript), this is not added as default, so this needs to be customized in the code
Jan
Re: block right clic in the plugins
Posted: 06 Oct 2009, 20:47
by yatoula
ok, i understand, but it's not possible. You don't have a idea ? for change the code, because my client want to block..
Thanks
I create this code in my index.php (for template) but not work with popup.
Code: Select all
<script language="JavaScript1.2">
function ejs_nodroit()
{
alert('Clic droit interdit');
return(false);
}
document.oncontextmenu = ejs_nodroit;
</script>
Re: block right clic in the plugins
Posted: 06 Oct 2009, 20:56
by Jan
Hi, I really don't have any idea as I didn't do such changes
but maybe try to search this forum, I think some users gave here some guide about this issue
Jan
Re: block right clic in the plugins
Posted: 06 Oct 2009, 21:05
by yatoula
Thanks
Re: block right clic in the plugins
Posted: 07 Oct 2009, 18:41
by Jan
Hi, but be aware, javascript is no solution to prevent from stealing images. Javascript can be disabled in one second in browser, so there javascript protection is not really protection
(it is a fake protection), If you search for really protection, try to add e.g. watermarks to your images.
Jan