E-mail: Password:
Sign up Forgot?
All Forums >> [Technical Support] >> FAQ >> How do I prevent users from right-clicking on images?
How do I prevent users from right-clicking on images?     Printable Version
Page: [1]
Display name
Message << Previous Topic   Next Topic >>
How do I prevent users from right-clicking on images? - 2/20/2007 2:00:27 PM   
support


Posts: 1890
Joined: 3/5/2006
Status: offline
Hello,

Users can be prevented from right-clicking on images, but we must inform you that it is not full proof. Technical users can find their way around the context menu being disabled. Unfortunately, the only way to prevent them from saving the picture is by not allowing them to see the pictures at all.
 
Please copy the code below. Then, click the “Apply global style” link in the website layout and paste the script. Scripts can only be applied to upgraded sites.


<script language="javascript">
window.document.oncontextmenu = function(e){
if(event.srcElement.tagName == "IMG")
  return false;
return;
}
</script>

Please let us know if you have anymore questions,
ICS Technical Support
techsupport@idealcs.com
http://www.idealcs.com
http://www.familylobby.com - Create your own family website


< Message edited by support -- 2/20/2007 2:02:11 PM >
  Post #: 1
Page:   [1]
All Forums >> [Technical Support] >> FAQ >> How do I prevent users from right-clicking on images?
Jump to: