Javascripts > Javascript Alerts > No Right Click and Color Changer
Script Title: No Right Click and Color Changer
Description: it will prevent copiers to copy in your website! and change the color of your web!
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<style> <!-- BODY{ scrollbar-face-color:#294A5A; scrollbar-arrow-color:#FFFFFF; scrollbar-track-color:#4A5A5A; scrollbar-shadow-color:#5A6363; scrollbar-highlight-color:#5A6363; scrollbar-3dlight-color:#294242; scrollbar-darkshadow-Color:#294242; } --></style> <SCRIPT language="JavaScript"> <!-- 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;} document.oncontextmenu=new Function("return false") --> </SCRIPT>
Copy the following code INTO your <BODY> tag.<SCRIPT language="JavaScript1.2"> function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } </SCRIPT>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email