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/AVvXsEhXsGksEC0LSX4ykvV7Apz44S1O8Va-N8DZ-BbMi7pXR6vQLGQd0PKdxyhUfvcLqDM0hdqaepr6CvdO3xnLUxtXWh2d_n1S_vSPTFL1pIgqIR07cu1ipxetG8HiTf78cFhds9u0Fw4z-oU/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/AVvXsEjr1OmP1okRXxRL7yKF09B-ggdYMW3m9BZAUGcpO0gzLcUjYcCnfd_On2ETSEJ_tLhyphenhypheneKKKpxepMVMu6_EcQzeF9mIoio7V-5-ZdgCzL96HxFguYBImd_Lo14HpWntZm8eskSjgyKEmoso/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/AVvXsEg4qW3zJBQa-G_gxLYaRrd58b1potXbsCam67mIa5J2_EfgBkyCRLcK14shTHGHW1VzOu_B1fEdteFOhsJimPRgWmU8hpQ6X5EXAChhvC8r512LTdYwNMK7rG-Upjgbw3-Qlapjq2IEj-w/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/AVvXsEh7CIO9kozCJwbH4IXdNvwvIkl5-EtOW9DyDmMGbQ-Vm3B3AGnNbV-H12NbjMfBJoyz8IrFqsFapbC6oLZs582b5mz2GRT-8RwSVRfJqMHCcwvtd-GEZY4ugEObWIF437oUaygpux1iO9A/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/AVvXsEiKTu8NH52Ux1qORKz0srrRFj4S6KC02Qg9-4sYugB9l9GBsR8LBYkYfDOZMhHHvMs3ivt7zBQ3KYE_lmYoKSCRhqohN5MGCOAEogE09ktR0ZxmI6b_vjyO4qUmgIJxAo1uUOo5dt91m98/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/AVvXsEgjjRh8tqh-17sZUxBlZCrd_ehmLAy-wRRwE1zxiySlPgeWe_f84kDPu1dtGCHlqKaP8EswREDo55vYi5mxkjcslhk8xrKKx8qwR28Z3DhLeOs62zwnoljKzAJkzCNJrgpJz0FrlSZGe0w/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/AVvXsEi03wwzk1tVwwzJyxEa9H-DdeRygFkoQnB94mPes-h9Dl0J0aO6jJTGvgvdLq8xqH4uC1sKCQtsY6kqK0cLGyRao3oJY63JKQcIep3UrqrvdFckaclOrjZ8re2uhJDXzQ9oBqNx3G-jcPU/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/AVvXsEgZ3JJYgYqCGmB3AH74jDAsy2Q6XwepFK4tJ3b_b9OBi1O481qnJz-UuZKbOWqgjUID2js7FnLIwDJ5DW6p8OpZWIx3bvLdCrQ4ObQIZs5xmqChGsS6MZJlhuufqEldJmPe9xyHKBJoGnE/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/AVvXsEiNIYnBgw5d7Jh7lLBcsC-BKDIObRcnoYCihMRAD4oxMs21KrdwnqrnvWGjUgJnYvPg6Qd4I6iH0dbrxlcRCNg2NThsDkSzjUcjHsRvj1Qnh-JecHHaUfiQyh5Na9cLp5IuctIOHR4u8ik/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/AVvXsEhrmL_YWyRMLnwwkQIWHA92_NcM0vVJe8PuBt4T7rQ6Z5kl111kKvyDpIzQfoAAC1kaPlejUfnCi2NlpnO2vhuDL4NI0WI1mrOHuZAdQb_ilNFqGdfelzec-_mR2BCZf08odyBoO0D0l0w/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/AVvXsEjcNiaOO2C9vCnwUgndF4VK7009c1BT6p8FavT6sdJrVh0BndcCLDMU1wtYGDDuSbj8WppryUIHSC3JD1CFs4XVQHZB3r2m4ozOwBgKjsXuo22EUyomCmzNjLyuOS30a9Jr7FiZkiudLgM/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/AVvXsEiGrZBq9HsBk7ygeREy2XHDQB3FcNCzzrYXDg1lS8seFFU94r51QILTt0Zwt_SYy_NbvGCT8pcfXxK0resjiABhAtNdPYYA3zcKI7m7IqEx3YwnlbnY_qvyOTWyRxFYa0377Pa30mON4Xk/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.
Tidak ada komentar:
Posting Komentar