• Pasang Scipt Link Sumber Otomatis Ketika Dicopy

    Berikut langkah memasang scipt link sumber otomatis ketika dicopy:

    1. Masuk ke dashboard blog
    2. Pilih menu Tema, kemudian pilih Edit HTML
    3. Cari kode </head>, gunakan fungsi Find (CTRL + F)


    <script type="text/javascript">
    function addLink() {
     var body_element = document.getElementsByTagName('body')[0];
     var selection;
     selection = window.getSelection();
     var pagelink = "<br /><br /> Sumber: <a href='"+document.location.href+"'>"+document.location.href+"</a><br />Copyright &amp;copy; PAPATABLOGGER"; // change this if you want
     //The Script Created by https://facttuts.com
     var copytext = selection + pagelink;
     var newdiv = document.createElement('div');
     newdiv.style.position='absolute';
     newdiv.style.left='-99999px';
     body_element.appendChild(newdiv);
     newdiv.innerHTML = copytext;
     selection.selectAllChildren(newdiv);
     window.setTimeout(function() {
      body_element.removeChild(newdiv);
     },0);
    }
    document.oncopy = addLink;
    </script> 
    0 Komentar untuk "Pasang Scipt Link Sumber Otomatis Ketika Dicopy"

    Back To Top