Blogger Information
Blog 37
fans 0
comment 1
visits 28399
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
使用js在图片鼠标右击提示没有下载权限提醒
kong
Original
871 people have browsed it
  1. document.oncontextmenu = function (e) {
  2. var target = (typeof e != "undefined") ? e.target : event.srcElement
  3. if (target.tagName == "IMG" || (target.tagName == 'A' && target.firstChild.tagName == 'IMG')) {
  4. alert("Downloading of images is disabled at the request of the copyright holders.");
  5. return false;
  6. }
  7. }
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!