Pasang Tombol Google +1

02.27 ---
Dengan adanya perkembangan teknologi, kini Google tidak mau kalah saing dengan facebook dan twitter. Kini Google meluncurkan Google +1 untuk jalinan teman melalui Akun Google. Tutorial yang akan saya berikan adalah cara memasang tombol Google +1 pada blog kalian.

Berikut langkah - langkahnya :

1. Login Blogger.com

2. Masuk ke Rancangan ~> Elemen Laman.

3. Tambah Gadget ~> HTML/Javascript.

4. Silahkan pilih kode yang Anda inginkan.

Small (15px)

<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="small"></g:plusone>

<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

Medium (20px)

<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="medium"></g:plusone>

<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

Standard

 <!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone>

<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

Tall

 <!-- Place this tag where you want the +1 button to render -->
<g:plusone size="tall"></g:plusone>

<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

0 komentar:

Posting Komentar