Headlines News :




Minggu, 12 Februari 2012

Kode Disable Right Click without Alert and Disable Select Text


Kode Disable Right Click without Alert and Disable Select Text

Parse HTML mungkin membantu..
Letakkan kode berikut di atas tag </head> :

<script type="text/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;}document.oncontextmenu=new Function("return false");function disableselect(e){return false;}function reEnable(){return true;}document.onselectstart=new Function ("return false");if (window.sidebar){document.onmousedown=disableselect;document.onclick=reEnable;}</script>

Semoga Bermanfaat..

free tracking
Loading

0 Commentators :

Posting Komentar

Silahkan anda berkomentar, namun tetap jaga kesopanan dengan tidak melakukan komentar spam.

 

Copyright 2011 All Rights Reserved Official Ghostcell Blog . Custom Energy Saving . Powered by Blogger