Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
Nic1570047698

Can I disable viewers 'dragging and dropping' my jpeg images onto their desktop?

Recommended Posts

We actually made a free plugin to disable right clicking and dragging and dropping on only images, so you protect your intellectual property without compromising the user experience by disabling right clicking everywhere. You can get it at www.squareguru.com/content-protection

Share this post


Link to post

Hello! ^.^I have been trying to edit my HTML code on my blog and place the codes under the HEADER or my SIDEBAR on my blog, but it all seems to fail... what am I doing wrong? Why it isn't working? ANy suggestions?

Share this post


Link to post

adding this bit to prevent right-click


<script type="text/javascript">
     function nocontext(e) {
       var clickedTag = (e==null) ? event.srcElement.tagName : e.target.tagName;
       if (clickedTag == "IMG")
         return false; 
     }
     document.oncontextmenu = nocontext;
   </script>
<style>img {
 -webkit-user-drag: none;
 -khtml-user-drag: none;
 -moz-user-drag: none;
 -o-user-drag: none;
 user-drag: none;
} </style>




Edited by ryguild

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...