Đăng ký học joomla

Tin tức mới nhất

Thống kê truy cập

Truy cập trong ngày:44
Truy cập hôm qua:413
Tổng số truy cập:537439
Đang online: 5 Khách 

Code không cho download ảnh trên website, các website muốn giữ bản quyền hình ảnh và không muốn cho người khác copy hình ảnh trên website mình.

 

Chỉ cần download đoạn code sau và paste vào website là bạn có thể chặn download hình ảnh trên web:

<script type="text/javascript">
var  message="";function clickIE() {if (document.all) {(message);return   false;}}function clickNS(e) {if   (document.layers||(document.getElementById&&!document.all)) {if   (e.which==2||e.which==3) {(message);return false;}}}if  (document.layers)   {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;document.onselectstart=clickIE}document.oncontextmenu=new   Function("return false")
</script>

 

Chú ý: đoạn code này chỉ không cho người khác lưu ảnh thủ công thôi, chứ gặp các coder thì họ vẫn có cách lấy ảnh về được.

 

Add comment


Security code
Refresh

thiet ke web chuan w3c

Dịch vụ seo website

seo website