<کد قفل کردن رایت کلیک بدون پیام
<script language=JavaScript>var message="";///////////////////////////////////function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.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.oncontextmenu=clickIE;} </script>
کد قفل کردن رایت کلیک با پیام
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"><!--// block the right mouse click on the pagevar message="Costum Message" function click(e) { //3.0if (document.all) {if (event.button == 2 || event.button == 3 || event.button == 6 || event.button == 7) {alert(message);return false;}}if (document.layers) {if (e.which == 3) {alert(message);return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);}document.onmousedown=click;// --></SCRIPT><script language="JavaScript1.2">function disableselect(e){return false}function reEnable(){return true}//if IE4+document.onselectstart=new Function ("return false"<img border="0" src="Http://mihanblog.com/Yahoo/3.Gif">//if NS6if (window.sidebar){document.onmousedown=disableselectdocument.onclick=reEnable}</script>
کد قفل کردن رایت کلیک با پیام با لرزش صفحه
<SCRIPT language="">document.onmousedown=clickvar times=0var times2=10function click() {if ((event.button==2) || (event.button==3)) {if (times>=0) { earthquake() }alert("\n\n Nem faz isso, q aki naum é page lammerz!!"<img border="0" src="Http://mihanblog.com/Yahoo/3.Gif">;times++ } }function earthquake () {alert("Custom message"<img border="0" src="Http://mihanblog.com/Yahoo/3.Gif">window.moveTo(0, 0)window.moveTo(1, 1)window.moveTo(2, 2)window.moveTo(3, 3)window.moveTo(4, 4)window.moveTo(5, 5)window.moveTo(6, 6)window.moveTo(7, 7)window.moveTo(8, 8)window.moveTo(9, 9)window.moveTo(10, 10)window.moveTo(9, 9)window.moveTo(8, 8)window.moveTo(7, 7)window.moveTo(6, 6)window.moveTo(5, 5)window.moveTo(4, 4)window.moveTo(3, 3)window.moveTo(2, 2)window.moveTo(1, 1)tremmors()}function tremmors() {window.moveTo(0, 0)window.moveTo(1, 1)window.moveTo(2, 2)window.moveTo(3, 3)window.moveTo(4, 4)window.moveTo(5, 5)window.moveTo(6, 6)window.moveTo(7, 7)window.moveTo(8, 8)window.moveTo(9, 9)window.moveTo(10, 10)window.moveTo(9, 9)window.moveTo(8, 8)window.moveTo(7, 7)window.moveTo(6, 6)window.moveTo(5, 5)window.moveTo(4, 4)window.moveTo(3, 3)window.moveTo(2, 2)window.moveTo(1, 1)tremmors()}</SCRIPT>