Created
February 10, 2011 10:56
-
-
Save Takazudo/820314 to your computer and use it in GitHub Desktop.
disable user right click
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| img{ | |
| -webkit-touch-callout:none; /* iOS Safari */ | |
| -webkit-user-select:none; /* iOS Safari */ | |
| touch-callout:none; | |
| user-select:none; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('img').live('contextmenu', function(e){ | |
| e.preventDefault(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment