Cara Membuat Tombol Share Dengan Efek jQuery Nudging, 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/AVvXsEixns-1vHXPkWyx8tH3cLHkHPqKCCxXENbOp88fs8qjkZFigb9urM8_lPSeG5BQh5GtnBT0jVWGDVj5FnFuU43ZIqJH9zHk7OAi3Z0S4M3AsuXYq4mv6mmrFSPaYyDL-FdOyiEIg3yVXLY/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/AVvXsEiNcpx7rOMQHGs-qbDQK-XX46nBRYo9Si-cKZMEAqDvxOalGqW2lGH5Y9yitgRZh01nrJ9wMN4LgXqiyLa6h-vwXoukSGD-alrPKvcDpRNVwM4RqwFS59tIWZA7SyzAkxmeo1GUGpmnhDI/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/AVvXsEh19nj5srT7r9yTfLOIt1RDt1WLhDnKVxS-EidrN5RIsNqizi2o_pIKVXbpqkZnSfP-vIOeNWJgA-ulfAQt0obX4zdD9zXMZecqWgVFbcLLrUOL5FlmP2onBzezkiQmQz6GGpqGfi6LTis/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/AVvXsEi9OVnafsyIwIJjsG-5oO0LQvopx_qIFGTbJPvHKpQY6OdQ23bs-FvxNUsilWdbZqqMMiOwzlynwcZZjr-VAcQoZepRYhkY5Cc-110SX1fc5d_0kGnmlyRDg8AaeE6DOiwzBJ4fSrWtWbw/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/AVvXsEhL9UKcbO7DczfmQa2pftcnv9wNK0w94jwz50v3ZnKg0POdypSnIjSrG8ZsjNNrGceTvKLT-MMospMQJG6A5udeL5HtfAEhnJWracUNf188y1_fi2UKVhddm2AfGPrY9B69PWDpGEjXSoI/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/AVvXsEj753gYOk-t65Xy0kN5gbkvKlYLCAA_ZXQqOiU5xsppPgjxywrRTng-m-INrblGb2CAo0-Cx4WjybnQ_J5xM_rAt-NR8ebHqSUnhEHpUuSBSe7bH0CbP7XkLkDbeQ42WwBUwYrinyUMy3w/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/AVvXsEhyTf1EJktz2Bmpqu86gnGl95byKiFfCGkvhF5Vmu6E-xRHf8rCBBC8JO8PaQlchkGFE92qts7uAzDcebN8Nc5T7K_ZnD4TBox7Rwb4Xyw2akleT6IcHRniz01Dy-mkhI_g8u3gSXDrgGk/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/AVvXsEj_DoWmlaXOkUBiGMRdHfZEDx6BFw1gtAQGVK0m0y48w_DpLjRkOXicgh1QJAPopbBM9QpQjiOJqua276VHK-KJZFZAkz-Cwz6x3DuYBmOICFDm_wzfibb7ClhA-bHJgo49TGcfu4iDzmA/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/AVvXsEj-L_qFjfXQ8ySDVif2Ncfj8KH4GLKVBGS9CMicvSAp3QQ0YKjkrXg6REKNuLzV26obJYoEMSQxpqtKQcMGDmtPp5HHnH-54fg-3Ye-aG8kTOw2haQdxgEw0tbRxzi5qvNCrywTDAkfG-Q/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/AVvXsEg_lhtCvJidV4czcKOZfIg7gb4C4W0UITRM16gf4z8BC8_q5bs8IJSu_be4Wznvx34rzF6dq4fZtSbPAm4xH1BHlmoyI-uiyvZ025TdiSRZJ4MdoY_T26k4CGBbGiwPqDeQOcMWni_WSHE/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/AVvXsEhoq148Dk3sGAHmPizyToYLh05yBdna_pLA2-01xKxhR9YqMPNvXSmHs04w7wRyFiumeDJR5GmZRxIwGKYZPTXgDBl_IQ1KxQCt_-y4p0mGJBzvkWpvV-bAg8NMDAKW_BYNj5P-LE-ttuE/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/AVvXsEi8txC1ZyAnAeq-1ydezs4uQ6JQsS9LzX-IHKjZ4jz84v4eqzidPaP3H3Fso-1k058zF0T8N-uhD75Tl6NSjDzIxHjZHY0j6cMb2dCBAgbFjzqwX-2RFNQb-M2oWPHwoBmWJQSsgo7uFyk/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