Tombol Share widget menggunakan jQuery nudging ini sebenarnya penerapan dari apa yang saya jelaskan pada artikel saya yang sebelumnya yaitu cara membuat link bergerak - link nudging, tetapi disini saya menggunakan gambar/ikon sehingga terlihat menarik dan unik. Icon sharing widget yang ada di bloggerpeer.blogspot.com ini terdiri dari beberapa situs social media yang umum dipakai oleh orang untuk membagikan artikel yang bermanfaat bagi kerabat mereka. Banyak dari para pengunjung bertanya kepada saya apakah script jQuery tidak berat ketika di load? jawabannya adalah TIDAK, script jQuery ini sangat ringan dan saya pun memakai script ini pada sharing widget di blog ini dan juga pada tombol back to top yang ada pada bagian bawah halaman, jadi jangan khawatir untuk memasang script jQuery pada blog anda.
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/AVvXsEgtQgrKLUU_vgrYowNkS-vPg5hMdd9Wv3-N6fNEYTEGCzaAobiMM8Xs7-kTosvEOYpbtmBKj9c7Q3dEze911EmcBiCjhnjXwyLiIugyoyKPenSthM6qhUf3VNaX3G5qLIfH7XfNXJ-5TxU/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/AVvXsEgCVlYBtvSLk9R7zAveL3XgErUJIdR2VneH_93uPnMnxUfOO6pX78OpZh592qYrV7JhkFvi1XkYwKNYe_p_K4_FJqjlDMGv6MzfECsltHRKKhFyWJmsQE2kirzj3bBi6GtRR0Gz2LeAiyE/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/AVvXsEgx4uReggZZ9fbTtXMorHZmbjJOJWZT_ZPbmyhNiPLGkLLo8sjrA_0p_isdO9OF4DjueLa7yQnd9KgX_2Qb9l40LrH57W6dyrk6XbKC7AGZYhPZMEEZpR03bu7bgx0qvdnvq6gcvK-ls4o/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/AVvXsEgrT9z77CsCT22coywMmynsbpE1u_yuJyLg1BimaHSXZ5T2tn-HYSDNEI_V04g9jKxhrkuB45RvxuIS7dFvGFlXtrahXGi7yjatYPHjZ2YKkuIYvuunuS6eSDufrI5IT3gZ676_YKDaM4Q/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/AVvXsEh7pj-VWjMPo5r69EltOtPDn3VElI1-Yqgt8tLU838KMEFwT7rKfU-Sv1Cc44UuHY1z_BCdBYgirZ5tySXK5GYbaom6W8mB7nygGzB503R4hfCqSmDoL9_kQitFKMIG2_6d1Krrkt12o5o/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/AVvXsEheNYZWfJZ0N5c6QvOtEyLx2bwzxzKK99ggnlkKMBG4tABly0nXNKS7uJEzq_R_MnAWv23Vi6nTRJs1-O68aKYskao-MAt-ONWA0OAKwDccD86dqmn9CypYafUNjA33iQx4bdvZ9XvL63A/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/AVvXsEgaCOlyq5PzX56QaaOBbyMwh93_C_Wv5YNA0NK98RQLnJcNDtCPKbPOsc2a6a6gpflaXm1L3ZEdxCZ7Z4efHqdiAApE6w_tKwxd553iKyavXYo7X8Yec6RSn8JBwUMwbSzQtyCwwztr0W4/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/AVvXsEh6FvC-2mn3AO5ZLDvaDkxiRk_NKQuOYGg9FYuYpkxRXucNLI52YZ_6Py6lr6VIUSSf6D-t0Mar0krbRfFidsAk2zYdnu52LIq1xV3cTeG6PvxIsA7f0Hj_xtIYS_9qRw8C9GHn5aq6B-8/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/AVvXsEgSOpBqRV6vRKFrHwvZDFtKxEa-z5eA4bzDIkgtps4zaqTwjqgkIi_uSHxQACiohl9GPRNsarXAiF2_QAgiLyiQSUmdlM7LG7pMq591Zf9RTzuzG6_IM1UAzwy_UVlBKZZyC_j-KQIZ7SI/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/AVvXsEhEGcAsZzDo74cHUmGBMloUb563VGrmj4TSMYNt9FcZuaaye-ebRJzm_zvq0zj02iz8RWs7WprYcIN61WUhOS8Y-fOG4s9OA5lrZDlYDjgZQJceVs5ipCMcSgdmZU-MQ7n2FqFbGiBulMc/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/AVvXsEgO_tRHEiGLuOSXIHpPiNizueNow76vw3eTRCaR_oPknBs-Cq7Qonwxpp7EXM3znSTCzv773QrJkJDCXYWbRO5oKNj-ZuAo_nPUNTAL4_n3BBRHQCe4Yb1YKuXT0kLjRoY6nkoebdLZQZ4/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/AVvXsEgwy4lSHnqouSSvEKZ3LX2G2CkEWrP1D5Wwdv4ArHfzEm24hVOrgdBX85ZX6e6f3-S5PNH0GH7dSAB871d6pmau5rH22Y8iCQQiiKgCiSp4yKO7upBf0YMbHTVu8di5Svaf3cD0BgTufHM/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
0 komentar:
Post a Comment