coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Konstantinos on June 16, 2005, 08:50:07 AM

Title: disable right click
Post by: Konstantinos on June 16, 2005, 08:50:07 AM
I have used javascript to disable right click on images and it works but it doesnt work when a user watches the pics in full image. I guess i must the javascript somewhere else as well for that. Where else must i add it ?
Title: Re: disable right click
Post by: Joachim Müller on June 16, 2005, 10:30:06 AM
edit displayimage.php, find <script language="JavaScript" type="text/JavaScript">
adjust_popup();
</script>
and add your code there accordingly. Please search this forum for the JavaScript no-right-click discussion, might be food for thought for you.
Title: Re: disable right click
Post by: Konstantinos on June 16, 2005, 11:08:55 AM
i added my javascript right below the adjust_popup();
</script>and is working cool
Title: Re: disable right click
Post by: Konstantinos on June 16, 2005, 01:32:31 PM
I got another problem. the no right click works in the full size but the browser displays a little bar from which still u can save the images. any ideas how to wipe out this little bar (floatbar or whatever it is called)

EDITED

<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

this is the solution which disables the image toolbar if anybody is interested in this