<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>
i found tis code tat saying hide ur code..i know it not hide sourse code one…coz i also know is possible to do tat.. MstrBob got note already…
thank you…
i try to put at my friendster but can’t work…
anyone can help?
just when press right mouse will not be work and will show msg…
i seen ppl can do tat on friendster…
many ppl also dunno how to do it..
i hope so here got any expert can help me…
help help ๐ฎ ๐ฎ
thank you thank you ? ?
<script type="text/javascript">
window.oncontextmenu = null;
</script>
If you are trying to install the script on your Fiendster profile, you will not be able to do it. Scripts are normally blocked from being installed for security reasons.[/QUOTE]
The simplest no right click script is
<script type="text/javascript">
window.oncontextmenu = null;
</script>
All other no right click scripts only block the right mouse button. This script blocks the contextmenu key on the keyboard as well (the key next to the right CTRL key for those of you who didn't know it was there).
This code also works on as many modern web browsers as any of the much longer and less effective alternatives - that is those browseras that ignore such scripts will ignore all such attempts while those that permit them will block the context menu better with the short script than with any of the longer ones.[/QUOTE]
0.1.9 โ BETA 5.19