Cara Membuat Tombol Share Dengan Efek jQuery, cara memasang social bookmarking share button widget ini telah di request oleh salah satu pengunjung Blogger Peer yang kebetulan tertarik sama tombol share widget nudging menggunakan efek jQuery yang ada di blog saya ini, nah kebetulan sekarang saya sempat mengulasnya dan akan saya bagikan kepada anda semua.
Banyak dari para pengunjung bertanya kepada saya apakah script jQuery tidak berat ketika di load? jawabannya adalah TIDAK, script jQuery ini sangat ringan jadi jangan khawatir untuk memasang script jQuery pada blog.
Sebelum kita memasang ikon sharing widget ini ada baiknya anda back up template terlebih dahulu untuk jaga-jaga kalau ada kesalahan pemasangan
- Login di Blogger
- Masuk ke Template > Edit Html
- Centang pada Expand Widget Templates
- Cari kode ]]></b:skin>
- Copy kode dibawah ini dan paste tepat dibawah kode ]]></b:skin>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/><script type='text/javascript'>$(document).ready(function() {$('a.nudge, .#Label2 ul li a').hover(function() { //mouse in$(this).animate({ marginLeft: '12px' }, 400);}, function() { //mouse out$(this).animate({ marginLeft: 0 }, 400);});});</script><!-- end LinkNudging --><!-- end LinkNudging -->
- Gunakan CTRL+F kemudian cari kode <b:if cond='data:post.hasJumpLink'> setelah ketemu kemudian diatas kode tersebut akan ada kode <div style='clear: both;'/> <!-- clear for photos floats --></div>
- Copy code dibawah ini dan paste tepat diatas kode <div style='clear: both;'/> <!-- clear for photos floats --></div>
<br/><b:if cond='data:blog.pageType == "item"'><b>Share it to your friends..!</b><br /><br /><table border='0'><tr> <td><script type='text/javascript'>window.___gcfg = {lang: 'en'};(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><g:plusone size="standard"></g:plusone></td><td><div class='bookmarks'><a class='nudge' expr:href='" http://www.facebook.com/sharer.php?u=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Share to Facebook' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeaX18lY79oyk1iiVvaga0eeCHCI_mNmL99uU_qxJoB2hv9mNljDC8WBBecnniZzFj9aT_uqFCzhg-nd6vMwE2tTVrcgMkUP8xXFu1ulvffY1SPqJOmU8JLRelpAfIP0pyZ8c2EhUCU18/s1600/facebook.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Share to Facebook'/></a><a class='nudge' expr:href='"https://twitter.com/intent/tweet?text=" + data:post.title + "&amp;url=" + data:post.url ' rel='nofollow' target='_blank'><img alt='Share this post on twitter' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXmfyB4UMsGelvnPwn80DQcWjMg-VF-KErBvDav4ywIYBXuuJyR7OXByQoTQ7Bv-2gcDDSWjUHUw8kypzD9uvYG_FJgg4-lyX4eiMQEJaKRkW84tSd081m9RkJmHRh5S_1DqTZPgIseiw/s1600/twitter.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Share this post on twitter'/></a><a class='nudge' expr:href='"http://del.icio.us/post?url=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Bookmark Delicious' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLYFPMx2fncTyrGjs_e9p85V9VzQuihNZQNBD9AhBjBlJX6wKYkhdTf3bWAC7z326m2gBQR_jpAVrp7qeaKcW1BebvvBqpwGOEhu_eC3J-C69UZtgwEpdMaBZgLja9gHf2aOt0C-nFMx4/s1600/delicious.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Bookmark on Delicious'/></a><a class='nudge' expr:href='" http://digg.com/submit?url=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Digg This' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg14PEB3pDmAiDc8qlOAWHygwfveLDVA0VGEMXLuumARdp_qRpt7vDXVAIjO9IG-4TxTSE2dri4K6DA7xFCBMMflc2br1U91c9TLX9dIzZZJ6N4Sm7ROqLfdXfjUqaqtZjHIV22zMHwKKI/s1600/digg.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Digg This'/></a><a class='nudge' expr:href='" http://www.stumbleupon.com/submit?url=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Stumbleupon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4q4RGlL71XXdg-HmkJVBMzh6xIlFdY3CLHlJkvy6NkVQ99A43sM2uHdtRQAWaF5tVhgolq-X9Im4GLvMFrDTzhfPbHd9TuhzvuNa7yWRwbWD_V35qwugtG-tTnAShaSp0ajHkuYg-HDo/s1600/stumbleupon.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Stumble This'/></a><a class='nudge' expr:href='" http://reddit.com/submit?url=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Reddit' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpvA2rvURF7STruWX7FzBOT6dkyFRuGXpGRnMhEae_9SGvXJKPnC5acwgF4pFe_JUkg1C2i-TiesfphLMM9Ob7e_RKDQ7mULtiVMwOfbu5zPlQLTEcZ1DIzJnluranDyb-O3ZERwHz9pY/s1600/reddit.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Share to Reddit'/></a><a class='nudge' expr:href='" http://myweb2.search.yahoo.com/myresults/bookmarklet?u=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Yahoo Bookmark' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz2ikuHdz34JDp9UvJcB5rZ-bkkJqGjRMGJIu0guaPQPdXRYcH0LLZlF3xDSdwcfl73wJ8urwSUqM3ZS6Gh1fBzh5plNU_PTASpLFCtQTyo858795ldJRNYePvt6EXgPaXrSxlX3mUmCg/s1600/yahoo.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Add to Yahoo Bookmark'/></a><a class='nudge' expr:href='" http://www.furl.net/storeIt.jsp?u=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Furl-Diigo' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6WNf2wWl3oEpxKLaHeIT0Nr1wrdp9SUJ96KFDRL0dsHB01P2m3JUgg23UH5lfow0QJ0RNQD57AG-5mH3SYCVp09myTMb2TMPmcOymOhTswgN6Eh2I_UqITIq21XcqmR6SMQjc4ULsHbE/s1600/furl.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Send to Furl/Diigo'/></a><a class='nudge' expr:href='" http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Google Bookmark' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi8urzj2EfySLwWTIQIdzPLYzvdjQCxYie5tXyz00dB9CLJ6hUMBLQuMgneM-2RSnIqPCOZnPFCKeNCkVx45NMniL54-aymVPes0YkGbU_qQ4PxkdrRMA73Wpluljw1niLKtfhwPorGAo/s1600/google.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Add to Google Bookmark'/></a><a class='nudge' expr:href='" http://technorati.com/faves?add=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Technorati' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwnbIYEqlVEzdlAYRnOgm77UJsEYkE_-xIeYjXI0xwqcrEnTZ0_BwSl7YmN1SXAuBbBVazmAiI1WkzYpD7GUx0HHvUR-LhlnBVStXh6nh8S4hsq86gBAYnH0pXDRSQEa1-Cdf8E5iy6Zk/s1600/technorati.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Add to Technorati'/></a><a class='nudge' expr:href='" http://www.newsvine.com/_tools/seed&amp;save?u=" + data:post.url + "&amp;title=" + data:post.title' rel='nofollow' target='_blank'><img alt='Newsvine' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEMtdozseeXgUfAgV-tcrsf7-Q4_lMOXXtBkm4rcFy_P9baFeS3smTFW7qh8rknnnPBOMW72GOoYl7yIi-7jyB0cUuLzVkCRQVQhCtG9jqH2TlOvmnhx1Kq1kihzM3SIaM81Olb6haaPw/s1600/newsvine.png' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;' title='Save to Newsvine'/></a><a class='nudge' href='http://bloggerpeer.blogspot.com' target='_blank'><img alt='Tips Triks Blogger, Tutorial SEO, Info' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6_WLaUpqcNsp9MEeXo_n8ocv8AqP6Z6W7knRBAFlH_SimkF_M-P1d0bD67NfBK2aeELb5A_fEP3-7vVpAhxqJ7Q4mgmIeReU101L_MosF1tzLgV2GivWxV1sepo7e7Uhmq-ePeoj9rAY/s1600/blogger-peer.gif' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;'/></a></div></td></tr></table></b:if>
- Terakhir simpan template
PENTING: SETELAH KEMARIN GOOGLE CHROME MELAKUKAN UPDATE, TOMBOL SHARE DENGAN EFEK NUDGING INI TIDAK DAPAT BEKERJA DENGAN BAIK KALAU DIBUKA MENGGUNAKAN BROWSER GOOGLE CHROME. SARAN SAYA, LEBIH BAIK GUNAKAN TOMBOL SHARE INI TANPA EFEK NUDGING DEMI KENYAMANAN PEMBACA BLOG ANDA.
CARANYA: Jangan memasang kode script yang dibawah kode ]]></b:skin> atau skip saja kode itu, kemudian lanjutkan dengan kode yang kedua dan terakhir simpan template.
0 comments:
Post a Comment