Web Design Tutorial

Citeste si progreseaza

Protejarea pozelor contra copierii

<SCRIPT LANGUAGE=”JavaScript1.1″>
<!–
function right(mousebutton)
{
var msg1 = “Hey!! Look but don’t touch!!”;
var msg2 = “Isn’t this the most annoying script since BLINK?!”;

if (navigator.appName == ‘Netscape’ && mousebutton.which==3)
{
alert(msg1);
return false;
}
else

if (navigator.appName == ‘Netscape’ && mousebutton.which==1)
{
alert(msg2);
return false;
}
else

if (navigator.appName == ‘Microsoft Internet Explorer’ && event.button == 2)
{
alert(msg1);
return false;
}
else

if (navigator.appName == ‘Microsoft Internet Explorer’ && event.button == 2)
{
alert(msg2);
return false;
}
return true;
}
document.onmousedown = right;
// –>
</SCRIPT>


Web Design Tutorial

↑ Grab this Headline Animator

February 26, 2008 - Posted by | JavaScript |

1 Comment »

  1. Protejarea pozelor contra copierii .Thanks for nice post.I added to my twitter.

    Comment by techwoo | January 10, 2010 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: