Blog Archive

Cara Membuat Disable Click Kanan

Disable click kanan bisa melindungi isi blog sobat. Artikel, gambar, banner, atau yang lainnya.
Caranya sebagai berikut:
  1. Click "tambah gadget."
  2. Click "HTML/JavaScipt"
  3. Kemudian masukan script berikut ini:
    <script type="text/javascript">
    function openComments(URL){
    var win2 = window.open(URL,"wzCom835728","target=new,width=1000,height=600,resizable=yes,scrollbars=yes");
    win2.focus();}
    function wzOpenSiteLog(URL){
    var win3 = window.open(URL,"wzCom835728","target=new,width=1000,height=600,resizable=yes,scrollbars=yes");
    win3.focus();}
    scrW="0";scrC="0";jScrp="0";
    htRf=escape(document.referrer);
    if (htRf=="" || htRf=="Bookmark") htRf="Bookmark+or+URL+Typed+Direct"
    var dhRDM = Math.floor(Math.random()*1000);
    scrW=screen.width;
    if (navigator.appName != "Netscape")
    {scrC=screen.colorDepth;}
    else {scrC=screen.pixelDepth;}
    jScrp=navigator.javaEnabled();
    jData="&scrW="+scrW+"&scrC="+scrC;
    jData=jData +"&htRefer="+htRf+"&jScrp="+jScrp+"";
    if (!(navigator.appName == "Netscape"
    && navigator.appVersion.charAt(0) == "2")){}
    function notifyUser() {alert("What are you doing?\nAnda tidak boleh melakukan hal itu!\nRight Click Protection By Asepjiku\nvisit\nbdg-asep.blogspot.com"); return false;}
    function userIE4x(){if (event.button==2) notifyUser();}
    function userNN4x(e){return (e.which==2||e.which==3) ? notifyUser() : true;}
    usingIE4 = (document.all) ? true : false;
    usingW3C = (document.getElementById && !usingIE4) ? true : false;
    usingNN4 = (document.layers && !usingW3C) ? true : false;
    if (usingNN4){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=userNN4x;}
    else if (usingW3C) {document.oncontextmenu=notifyUser;}
    else if (usingIE4){document.onmousedown=userIE4x;}
    </script>
  4. Lalu disimpan !
Semoga berhasil.

0 Comment:

Post a Comment