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/AVvXsEhO_SrTu_IBKaw-vYWrGVwMnEub4n2ZhI1hcPL9ic2cgYSDHAaV1-IpZPmWl9WavSp-GBOQ-Xz8Pbg2DQzo91lwsNVc-7pZj0OOn9qdkROjq4cAN4Jj3d_my3CkC1-dl-AqwmUw7jL9kXY/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/AVvXsEjkgLYDyK2hRUNUPZ9VlY9dQo_7D64Qn4LDz6qDfcUQVWNBQcjYOURs352NWXnGq-HMtpTHzZlpwkD3oXwU94Sos9mm03fi8BFfHJXM9NNK2LLU7adTHqhOAzrTX_MDgr-0L78Nj2-fCtA/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/AVvXsEjYxmZeI7-9pRx1ywpGUBYRfRIFSw78phI8_eSlXVgM9-BkrimytK8czO2slBGUGtrcI6kYDd_d7eT6IkTkobd2ifc_3W0lW4EtXYLBjlLnit0scHFzGb16R42jMMd00ZSdGYC5Vxv8_BU/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/AVvXsEj_zfGyiOpvaOeLW7taTIPbEsP-83efn_WJJGXkeYYsgVAAdQQFrzPDw3W7-b_opo1vO14kiG_mJhYpRJw5rl60RDA-RO5zy59x-aN74_LYo7xZcI0yIgbcmbyw2GKowUa7zBctKwZdLxQ/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/AVvXsEhDOUd7wMsQC2xIvNyEc2Mqdxf7MG8ejBiPIoaSsfVMpkIEVUPsjL4rig52WphDr12DFZWKJHDFia_JMEYozcTtWJ-tn1yQAjMH1FZ8bsAeHpkLs65r7tFa3gH8X3ZIXZG2m6X2KRXuNlU/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/AVvXsEijsWeEgoiusiRXaj7UHCofLPelbCIn9yfZUKD4PNMeoQ7TxaxoZGvYsAX3YbTRL0ZILi6YT0rO-m0TcZt39NHGxH_aDap8hrpkBg9fBVJcxBVVdbAd7hRguem74dckqKLQRXECm0PRPuQ/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/AVvXsEhpHe6Ibis3kdUFBUfIkcpD1ipYocBJvnIhOVWpbthwSSQ8QTDu7zvyt1NqcJp4sCKJkdm4gRPFojXX0bVpc43OrF-H9ggA3pZSqY3E4GE6do4WVxM0CTcvhQfOgV6BorXC6aQPfYSrhoI/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/AVvXsEi9cdG_R0kSy_AlzGn3NU6mHsMq-Tnwc5dOs4KiQvIij2rKpuWWK31P5kPIvNR4WQjArtvzbmK9rm0d9xQJaAXqxHlbmENCrKPY-HkSkDq0C0A4TNdSgiVOWtxPn744jd0L5wpCRgaxmiE/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/AVvXsEiKGfrcLRYrOAYv0pshKslsl9R0N3uHpKMO1SUjvjrF44rmq4M96nYn1LQSOwvt4OPBxAdss8Hk1Ays6uriCCCt0RwnbRH_jxaijWqC_zTUZXjd3jtK7jtfRRArO3a1H0yI4P2CwXqJAYo/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/AVvXsEgu2yQs_1BX11p1kuX61F2oqFuV9E-niKR1ubz09hfTVBFHLbrw5sOwy6XIJIEHf_SN_ebCuP6z2sj2ZGYXZMdzVd6LH540bsfymPxB8Klvj_nBuBPLDcANJZUJwdUvBqbjsuPrxt-_3eI/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/AVvXsEiTKf4z42OXQjKYz3JBbJJzK5g5Bg59DdLB106QAfv4kbJAyGrLGseEtBa99JBiDl9oT-eC27amCrE6uF8EZFn3JyO8FB7FSUCseT_F46D1Zw8P3Qf4C9kJ7BGjURBYx6V5PKKRjOGHDZk/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/AVvXsEhQZ3hy3IfOpadfIh0e8toY2KcpZnYKjiOed2aumnbT33Q3a_CCCeuxRBcmKOVXAEyqoLKxpexdEMcaJDz2TIY6CVBB81CjERLSx6fnmagjil_UHUZw5rv3VdJ4eP1aDSS8edtGfM5wxig/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
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.
No comments:
Post a Comment