![]() |
|||
|
|||
Protecting Your Images
Many artists have written me asking about protecting their images. Although there are several software which allow people who want your images to download them from your site, most people just right-click on the image and left-click on the "Save As" option. In order to stop people from right-clicking on your image and then saving it to their hard drive, you can put in this JavaScript in your page:
[This will not work for surfers who are using Netscape version 3 and earlier and I.E. users 2.0 and earlier.]
<html>
<head>
<title>
</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source! http://javascript.internet.com -->
<!-- Begin
function right(e) {
var msg = "Sorry, I can't let you grab my picture.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
if (navigator.appName ==
'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
else return true;
}
function trap() {
if(document.images)
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown = right;
}
// End -->
</SCRIPT>
</head>
<body onLoad="trap()">
I taught I taw a puddy tat!<br>
I did! I did tee a puddy tat!<br>
<img src="tweety.gif">
</body>
</html>
Note: If you need the pic of tweety for the code, you can find one here: http://DevWebPro.com/tweety.gif
I hope that this helps all the artists out there who want to protect their work online.
BLOG TALK 
Become a WebProNews blog partner.
Twitter Uncomfortable With 'Tweet' Being Used In Third Party AppsLooks like Twitter is not looking the other way as much these days. TechCrunch reports that there is some concern at the ...
Flickr Just Now Allowing Connectivity With Twitter
Hulu Receives Good News Concerning Their Online Ad Format
Global Gaming Factory Buys Up Pirate Bay


