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 blooger.co.id 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/AVvXsEiOukK0GPlvL3kxRXc7eMoYMawRnSGnfRtTrBPbYDpCzp_i4XfRKOb64W3aDlkU-WvY7qZrthx3d8I99B8t9sZUKlLwdEkvJQyjuHmOSBqw6mJmgwTD6ujI4BDG4GZ7Kh08VOuXEW9xVpM/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/AVvXsEiJT1qHbdOMhaRQxz2FIUlbrikdgaQx5PxqOxq73gPkpsggTEHMq8B6nb9UVdt09zXWMqMkAjMtLyiD5F6r2W1onYT2NZfrVtKe4uOCNTOIOM8qk-jTF51BnG-1tENh-pHiyS3jg3EwP04/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/AVvXsEhY4ub1q6jY78SbkXQIcXJPvaPltgraa0vTJG6KAbuqIAEK2ohh9DxX_sKh_rUUr2fGPsRhfBCME6QCZ_i67Kxw5FPWsWvBy5EJOwnXhM5YeUaZijs_46RMgmvNgfY63-BInDF6nAmyTk4/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/AVvXsEgctvausiDtWh3tV5loWIvBeVH5ocohvVDQEcIblPrRYlrpSBWHE6rhm_UU_UTa6JB70d0i1vCLDqqkLjTVvG_t090yiz2xz-8YSZV89agKLh5u0JxS8QGkABrL3b07K5AFMYsn8gDLamI/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/AVvXsEjT8PsqwrzUswP8StrQCDUW6t55zhn3Fn1iM0NN7jA-20Gv1PUfaT37pTHNQq7a2XZw4IP2oRH9hZtcQRBalmqB2gT6yU-LRfkB90JdjuGFS82xiZ9QtonaY6UQeM5e-Sh91BP4-Ze5kDI/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/AVvXsEg-SrhhIHLZ34DTPtTIahQ2HniL1daiAeUU-ko188s5HC4TuGQ3DWignThpEPYoTGOBZxerN1Voc5d7shJP3_S-9e8rRfFR1E0gkgWh287gTZAtDbviwz5eHdMgOpde8kRoMIgw2RtF9mg/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/AVvXsEhOrb8cMu022ShZC5aMiNnqdtsLxPSFy_QHkHEf8JY-6ixADMBU0MVxbgb7RfG9Ye-ud9HyaFZP2w3sAZ2joAH49Ftxq7T-lYF2taFf5C1IgXc3qOjZbhl9c1lSvZF_0ymccSuVBWfr2IA/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/AVvXsEgNt9UjY0atxMcTN6LZQyAxXhw-vetUrD96rdmGvI3vtq0VxzdPRCFR-beqn0K36ZKi4Ne3cxb54W73vBB2p5KZs1ifbC3SBH4Un2z64OWkSiXBnA1aCFswG-3aWRB3sRFIOzxyZ_nBLeQ/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/AVvXsEgs7fSsgWd1sH-OwM_2n2p2yJy7vcMd2-mV3sdTWrZ3dLxQfgVGrRVf_5t0D6d2qD1PQ7ootxRTeqSwVPDaJz9HJvlhfReYzwNiB1_pMcFj2HF0MhgbavfvDJYSSTjdtcoqo4avsszqMNM/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/AVvXsEi6ZVvCSrWttae-jgMIlYmSYlzUsCIRIkYEMN2RyFC0ViRljg25_6aA92f1s5vZuOldC5I5DZU7AQx5I1xid1ry8UawFrn4eCAMOxcowMVp8-mUOlnIFJy2tmbxWt94cDrqRlMo4uDsleQ/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/AVvXsEhZoiNHjPYDmen13ucsSpbZpanageibqhGLmm4TcD0rhSvID0bmnV_EhQMAxYYvVKPEeJAzcdGi1_mmGuhhDR7FGPEKbULmo8xTF2hGNIp1RMZkb5HvGztUrxgFJfn2mWKDsf0JAxnOulc/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://blooger.co.id' target='_blank'><img alt='Tips Triks Blogger, Tutorial SEO, Info' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzAFQvDcARe5uoRKWu2QOrRYTpqd_DESBpvchAMzNFs5rD_ThMWSWb178qjQRliLLhTbBfsg5Oe2nqBWLYWa2CwawK1ky85FFcoD9ZWydKc0G40EBsQF7GB9FQ1LNct2DelUDpCbPhQZA/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.