You have a slightly different version, if you go into your contact us page you'll find you cannot click on the "message" box nor type anything in that box. All other entry boxes work fine.
You have a slightly different version, if you go into your contact us page you'll find you cannot click on the "message" box nor type anything in that box. All other entry boxes work fine.
Right seems I made one tiny teeny error in one of the scripts, the 2nd one, the one you were using with the pop up message was fine it was the other one which does the same job but without a pop up message didn't work...... does now.....!
So boys and girls for text and image protection without an annoying pop up message use;
Code:<SCRIPT language=JavaScript> <!-- function clickIE() {if (document.all) {alert(message);return false;}} function clickNS(e) { if (e.target.type == "text") { return true; } if (e.target.type == "textarea") { return true; } if (e.target.type == "submit") { return true; } if (e.target.type == "checkbox") { return true; } if (e.target.type == "radio") { return true; } if(document.layers||(document.getElementById&&!document.all)){ if (e.which==2||e.which==3) {alert(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") function noclic(clic) { if (navigator.appName == 'Netscape' && clic.which==3) { alert(msg); return false;} else if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) { alert(msg); return false; } return true; } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown = noclic; // --> </SCRIPT> <script> function disableselect(e){ if (e.target.type == "text") { return true; } if (e.target.type == "textarea") { return true; } if (e.target.type == "submit") { return true; } if (e.target.type == "checkbox") { return true; } if (e.target.type == "radio") { return true; } if (e.target.type == "password") { return true; } 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>
And for image and text protection WITH a pop up message use; (remember to edit the company name, twice!)
Code:<SCRIPT language=JavaScript> <!-- var message="Copyright ©2008 Your Company Ltd. All Rights Reserved."; function clickIE() {if (document.all) {alert(message);return false;}} function clickNS(e) { if (e.target.type == "text") { return true; } if (e.target.type == "textarea") { return true; } if (e.target.type == "submit") { return true; } if (e.target.type == "checkbox") { return true; } if (e.target.type == "radio") { return true; } if(document.layers||(document.getElementById&&!document.all)){ if (e.which==2||e.which==3) {alert(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") function noclic(clic) { var msg="Copyright ©2008 Your Company Ltd. All Rights Reserved."; if (navigator.appName == 'Netscape' && clic.which==3) { alert(msg); return false;} else if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) { alert(msg); return false; } return true; } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown = noclic; // --> </SCRIPT> <script> function disableselect(e){ if (e.target.type == "text") { return true; } if (e.target.type == "textarea") { return true; } if (e.target.type == "submit") { return true; } if (e.target.type == "checkbox") { return true; } if (e.target.type == "radio") { return true; } if (e.target.type == "password") { return true; } 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>
Again all credit goes to MikeyRed, I only added in one line of code to his already very good script![]()
Thanks Adam for putting the script up..... just not had time, been rushed off me tinies.... 1 wife and 2 daughters to support so not enough hours in the day for me - blimey! those violins are loud![]()
I am wanting to protect my content, is any-one using a more up to date code than this last one posted or can anyone confirm still using this one?
Thanks!
Still using it on GBUK and works fine......but then I still have a wind up handle on the side of my phone.......
There are currently 1 users browsing this thread. (0 members and 1 guests)