MooTools 1.2 Image Protector
Written by on August 5th, 2008 in Uncategorized.
It always makes me laugh a little when people try to “protect” things on the Internet. The dwProtector tries to “protect” your images with you just having to:
JAVASCRIPT:
-
-
window.addEvent(‘domready’, function() {
-
var protector = new dwProtector({
-
image: ‘/blank.gif’,
-
elements: $$(‘.protect’)
-
});
-
});
-
How does it protect?
- Prevents right-click “Save Image As”.
- Prevents dragging an image to the desktop.
- Prevents right-click “Save Background As”.
- Prevents right-click “View Background Image”
Check out the example and try to copy it. Of course, a simple print screen / apple-shift-4 does the trick, let alone a view-source.
Source: Ajaxian » Front Page
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/356218514/mootools-12-image-protector