admin管理员组文章数量:1323225
when we drag over an image, the image bee selected. how can i disable this selection using jquery or javascript? I am trying to create a custom image crop script. i tried e.preventDefault()
but it is not working in IE6, please help
Thank you
when we drag over an image, the image bee selected. how can i disable this selection using jquery or javascript? I am trying to create a custom image crop script. i tried e.preventDefault()
but it is not working in IE6, please help
Thank you
Share Improve this question edited Aug 20, 2010 at 18:06 avpaderno 29.7k17 gold badges78 silver badges94 bronze badges asked Aug 3, 2010 at 16:20 johnjohn 5357 silver badges23 bronze badges 2- possible duplicate of Is there a way to make text unselectable on an html page? – Pekka Commented Aug 3, 2010 at 16:23
- The duplicate is referring to text, but the solution is 100% identical for images, too. – Pekka Commented Aug 3, 2010 at 16:24
2 Answers
Reset to default 7There are also some css properties like -webkit-user-select: none; and -moz-user-select:none
You could always just use a existing tool for that or look at the code to understand what it is you are missing.
本文标签: javascripthow to disable image selection using jQueryStack Overflow
版权声明:本文标题:javascript - how to disable image selection using jQuery? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742083209a2419820.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论