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/AVvXsEjM_r8x0lvVbKUAj5VMVmnmy0pYTMU1isWyogTW2F4JqwX7Lu8KMOn6SGDrTb76EhWjkxU2l9mFVDoXMATbzlLZoh4fY2nnGzvk7vwgrcTZ0vjDuxkNWpUuQqrjwBr8uz9hVdy_eYW60XI/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/AVvXsEjDzdjcsqMcVGKSoiSrXZgJRXWabgiInG9a0vsLtDhF8QWwXT4hvq_7e63Xdt6r0x_i1dPVATvYUVVqybDJm2vwiSueG6K3zL0SwE6IXd8412ojCCvCugkuvFqsJONLwMySa76cDs7Dkw0/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/AVvXsEi44vTyOd3joZHR7tpFcsfp6DX78fIrmTwe2dwlCsxuABGaxxe-uOHAm0T-RdVoFx6fz6_hSXkU6aWtBe26IoUJLcqxi0e2gpeFh48fHal57bz6BPZ91CBUJH8KY9Httx2Twn6p4QwGxo0/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/AVvXsEg757oe-rlHI9absILyjImfG2hmC6vLP8aWqzh4mJnhiSP9PWYtt4VYWkdRbIywML8hi7ttsdUQ_TDvmBB5mNgV4EY-tRl8QuaMyTeCt_Y-XOBd0Yq6xfEMX3rTYUWwXMdwb7Ax4OFKs1I/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/AVvXsEi-jMBm8pJu5LOh2wLmyCRSIoIAo8-gMCh12ICntSHMwaiVg6x_Dvg8PKA-7vREOsth8UshVmSEMwCz_1Hx6I7oaxJy6-1l-ZWQ7XSubFRN0f8QQOKGdeUwldAG4NVC65tP2NVRa_sGAlM/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/AVvXsEhKL3J9HAm6-v4d4bGo4GGgziFjM_Vmyvt5bb1_UTKsTNb3lJ2kY-0J_R3olJj7rRy0rCKGfTUqLAGlneDpM_hEK2UpDPYo5d3YdFstO37sMdOKckaEcqVn_uaWmmjxrY67zILSa6YAwXc/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/AVvXsEhCfVuznGf_7MmH0xODSiws61X6VOlwxCl4x5RBdtqKUUfHqrUgY3Jm4nfPImmGdZsVCZOrcX-F8VAOL7Qy5j99aQ5Ybopm37YxYLXIAwpUkHx8mqWVJ0Nd65hDka55fF2YTiE1s3YOdq0/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/AVvXsEib1-ojgzwZG6pJzG8huRToEbQSO4EHWo5Dwoby0omCMRspvTyQSpZ6UIO9j9KiSEID-7_bJ48skAzYn-b9AxpbgDYnhyEoQUna0MHYZH66jVJQ4V5MdeEzKLQYGiMEWkdaLUzKiBojH5Y/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/AVvXsEjKBah39XuS2SgSSGTCV-r86UAKGoJiGUPu11HOW1JiK-mRmWpakWvjty_e8OG-XqwIYPrdpA8Uu_TAhnZquWBvA_Sp24naNIl9oibYDEoiMYzNNM0y0PJ3pKRkoQVulOFgiMl7dGiiEQI/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/AVvXsEh-x077_hn6VfT1xw5V4bUBwO5nYItI81OXIseA-WyRb_ZNPxcgZMynwa_LlBUxeXtGal0y89N35FeEYS_XATCQGhVvMOy-d_PBjQxuuu8e0jlXQLgbfO_1sXUMrlKDc4YWjEYIKmf7afU/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/AVvXsEgvU9RkR7C6339zOfGovFTziAvX5Jc44h6N80vnQRHneVNsaDDk21_n6Oi4Vf55ggndWzO_b2XIlfaYN1_krtQApAXwA1ylVtbZUrMw9PokYWv_E4EopAZ6LS2sI2281r-HrXrxP-JrK0Q/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/AVvXsEgwQw5ZAYsHyQ9-d5I_6Uc7cl6ofpkrctzbCpxtA9LMg8fbi-16Cv4fzlOHQa3zoTFu7zWV7z8myNTtYyvQ2xKVtrXqdjHVdrOtg_szsyoYggqOdNzWfgN0ognx9RmmEQGf1pifhBb_KJU/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.
@
Tagged @ Blogger
Tagged @ jQuery
Tagged @ Tips dan Trik
0 komentar:
Posting Komentar - Kembali ke Konten