NO RIGHT CLICK SCRIPT (NO ALERT)
--------------------------------------------------------------------------------
Description: A "silent" version of the popular No Right click script that doesn't' alert a message. To alert or not to alert that is the question
Simply add the following code to the <BODY> section of your web page (Press Ctrl C after selecting code to copy it):
_________________________________________________________________________
<script language=JavaScript>
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!docum ent.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.oncontext menu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
_________________________________________________________________________
THANK ME IF I HELP
__________________
Love all, trust a few, do wrong to none.
*************************
http://www.friendster.com/jeffsensei
~Monstersgame~Click Below!!! Hot!
http://world2.monstersgame.co.uk/?ac=vid&vid=31044305
(Offline)
Last edited by jpuy2006 (2008-03-30 20:22:59)