disable right click disable right click
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

disable right click

Started by Konstantinos, June 16, 2005, 08:50:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Konstantinos

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 ?

Joachim Müller

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.

Konstantinos

i added my javascript right below the adjust_popup();
</script>and is working cool

Konstantinos

#3
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