- Back to Home »
- blogger »
- Cara Membuat Tombol Share Dengan Efek jQuery Nudging
Posted by : ahman " creativ"
Kamis, 18 Oktober 2012
, 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
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/AVvXsEgQZxzzcZNvGp9h1jym8QTuGTjs6ZzTc3rVDI4LHIViUnoXhvFiFumpcPwv2OGiEpyDg0zOAP4iakbcj-dUdGVFz21ZjRAK9_hMQbfy1C904-rprcMM6CAEuxAqKvR3vE9S_M3W5ogyTjU/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/AVvXsEgHNlEfgYqgqTRq4uafFMvW81oY8r_GldtgAFBk91oRB3QvuFmMCAVd2xImwRv9dpwCoORH7btZcM_J1TX3VYh8SEe64j1-AOGhvV9-RzLheg77gH_wWd7hDpa_vv2ZkQZ5K3GZB0kFbkQ/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/AVvXsEjTGlWXQHTH03sDMf1TiJTOUJL9-s5I43fcIUFXbNekMyL66bKG9AofSL5is0GPtaGJMkqF7_duwjmtIDYq6MW62MEC_AligMtOQrST5mbkknP3XNBmj28G40ERvVxVTQLeXoxpatrwvgs/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/AVvXsEhfCbZAbr3_VIWyXV3nk7leQ1t-HmjD8gYhVIYIi_1an0pcTEsJZFO2FCFmRUV-3eKQC0XpUQjWjXTPvH4qwMGjFjL_o4DTGdqWtU0MRvZocWsjXnb6SmI4yr-BJ3ozmV9IjS2_RTEoh98/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/AVvXsEhEVpZv_Z23dvF7zqe8Wc2wJvOt4t9KTkE4t0YtJWtcrfRuH7J3gpFxbEjdPn83flaTfKKQpzm1jYmDZNWLl7TN30Di2okWePmRZ54JzmYePG1f9sUoB6wARCk7eka7Q3eMn6BO10flJw0/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/AVvXsEhbi-E2p-szKEfGiqp6T2Foeo4s1IPCev1-M6vmEtPQqXdgVsy1GQedYWruR4DdugT-crulIJlD9ofLfe36JOCoTETTNE2XIOh5pOLAx_nzccUJ2EqB-erMpbrBqXO5JM3tI7zg0gzBZ9A/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/AVvXsEhvtJBg8j2ggw-nTdK6xMYguyGfqw5XL3xvmaM5th-rOFzPhv0e3jvrfQg2zqOthzdfMYoU1ouzkiBF_jag1QPqXWI3M7y9M0glA8_NfCNyh7Khas9XwzXaII6313TECu_v01HtWQ6r9Bs/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/AVvXsEiCWU2zzyyaFSs418mn5ub8RGD51bTEoXPO8aZG9hfLW4l7GuJJpYvczqKipEStNtv91Jp3K-xTaMVoZZn7KO7MEQkZ8DhV6of6AZF3daYDwxoMizjJuJx_KL4L_84TFCIpzBCu5qmy2S0/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/AVvXsEgqH33Khd-6WvSqLM8uGUha85qbnA9jD9wt9TmbfTOl1g-DEL6eI7fIKPHMzN6MCVhjUwld_WN8tzlwRrsiNvfTT8UiCwd8vrpwNJfSR9N_yz3UI0SxDKuODJLLdBIz7QYBlaVamHR-IOI/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/AVvXsEgvMwNgrVFd_3UrnrTYj4bk46qT9L-IJvmGkzbgeMmmBmkFE8uUDPJuGn2VexXvBf5BOyMgbI4QsubAUMb66a7f9wx5XksvZRlgACoi2O1SMxiDeb9x3p2-9TSOIVl8xfIAcKzl4EVrggE/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/AVvXsEg-M8aSXSLT19RC3JwVj8c1iAVkg1Ehx5JPpYmjB-jmYNFqRA88D1qTBHgJhEItVa_Q0NpdzE7fyxaBQA6J-YBzkdN6NOMVD2S7Yd6ytYPFLryKMgzeTyOUAeCSl-YFWiyjR_uB20OgP80/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://Ahmancreativ77.blogspot.com' target='_blank'><img alt='Tips Triks Blogger, Tutorial SEO, Info' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg57qNSMAn_ajI3R6Zt50qf-xpbvdLszlc9d1tfPM4JPM02u9cQQK9DW7TaTcTQEA0hi-E8iYrzrdm9aSsb4sKogyipeIz_wkJ59twE-g3WX7Q1S24wdJas7ENKpkUWp5Qo6xEdt-4uhHU/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
UPPS PENTING SOBAT:
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.
Oke selamat mencoba sobat.. !!