Welcome here! Please leave your comment and follow my blog. Use CTRL+C to copy (no right click allowed)
This blog is full of tutorials. Please use them, by clicking the "STUFF" page above^^ Thanks for your visit!!
I'm Gifta, I can't online everyday /^-^\/>

Thank you for your visit, please use my tutorials...!
August 05, 2016

Saturday, August 27, 2016

Tutorial One-Click to Auto Select Blockquote

Kembali lagi bersama Gifta cantek. Wkwkwk... Sekarang mau kasih tutor membuat one-click untuk select blockquote. Seperti milik Gifta, kalau di klik sekali langsung udah bisa ke highlight semua kan? Langsung aja read more, ya!


Step one:

Buka blogger >> Dashboard >> Blog kalian >> Template >> Edit HTML

Step two:

Cari kode </body> dengan CTRL+F

Step three:

Copy kode ini:
<script type='text/javascript'>
var pres = document.getElementsByTagName(&quot;blockquote&quot;);
for (var i = 0; i &lt; pres.length; i++) {
  pres[i].addEventListener(&quot;click&quot;, function () {
    var selection = getSelection();
    var range = document.createRange();
    range.selectNodeContents(this);
    selection.removeAllRanges();
    selection.addRange(range);
  }, false);
}
</script>
Dan paste DI ATAS </body>

Step four:

Save!

Hanya begitu saja, mudah kan? \- v o/

There are 14 comments.
Please post another comment..