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
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
<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/AVvXsEiZCtIZXyTS0-vfVDsZgRurLaC-A367VfHEDeV0tyLPB_vUq9BsFttMc0Nv1B8HQShsf3nHhTkprwR6VqJm-qR14hrC_e0DVOa_oNOhN7NuQjSw8L_eS57HeB6l2bpxea0_o21sQ2SMTF0/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/AVvXsEj08YEbF-WbTzIfeXsEb_2xHBmdnkp1lfUGV2dwiNFGz8J8IrDX09U5RZkUgxBq9hIjc4LrR8ROvwLo0dgvmE0zMUn2VBWVks4ONnS7z2n1pAxCddCkTxH9KhTVAa_Ws9GXYMhBZe7Z-W8/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/AVvXsEjNVNutHIPLKFBJwrBd7vPbhhDkmiQguPgj0_MZYmPg3zY5QzaOiKmQfx16yZTKBB3FnTOHHeqa7Llm7yW6AcUOIeX-4waiytYmfm-WUojGsOoF7F3XdxhmXWpQxESYsCRT-f4mK9JgeEo/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/AVvXsEg-95IGfqSOBrJlc_g8ClUS5T3iLkWU-Hgj3ZzDZNPBuXHUtK_BNCuAtyiRstqkRmfPWzi_gyJS1hQLEBUsnjsVjS-hScBipceIqLEP-rG6p0lo7mlyXvSTGu3LyyORW4cMEzilXAyPA38/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/AVvXsEgg1nU9GbGm8hFeaqfYKZWBDq3TLEUhMqZBU1vkhxvKBzq61XmbVTx6Sxl8lZOUPBJ1Lz1nsasnZ03pP-YO2L9FmdGSiP9pe1oR6Uz2g7VDE7xh1ohwMByYbVavLgjkZPkRpvYXSN-sGaI/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/AVvXsEi6l6U0qvhLkKJ4pGM0H1MaemP6drQQqPkqkL69p_090wVjiqgJtGuiqAG9E_VfHxdMgk5hmKQKMd8xLHUORawmdjOBqGeY_SHUBuNOa0OQCYIJpUCqt3fXI9opuU7WZspgZcCTn3055g0/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/AVvXsEjViXf4tkpqgU4g2bXm_hI2qaEZafuMordFArYslWDoujFtfsRYIwRqBoK2CyCl9L5L1938B3fpHlMp9aA2vn38elO-WTxEurldd6BiQJBtoHIEuuNi-7UnffTqT6jll937uQ_mI1dW5qY/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/AVvXsEimAK8zrGR-Yu6Wzbx5z5rktgNjr3-tdMK9dKrW74cUOEscf0lLDiw_ainp9S6V0-ozxtHYXB0R49RBkvwJSJMjWoQcZgg1RSo7enFvWt3W7STok-qNSlUl0raYo6Bv5Kqc9_-saIH51LM/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/AVvXsEhuq_hyphenhyphenSzgSZeOzQlI8EqbfaQuj57r1M1fM4XplLQ1lpvh8JJ53arL_H9JX8_B-x9HbgtRvMpaabqX7H1xOqRiFlFVI4A_BQHO7e4wNEoI1txlamLFTDqY910RW03RHKGq5-G5Cq-WMbi0/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/AVvXsEimvrGB_3tMFbguDXGmrzx24JMYTRLpFHQIdJcnXVlxJNHI4M14aUd0yA2-wDnVtGWBQHGzuFpDVRE13wiHhyphenhyphenK1DhugCaWxEJ3EscFijszgkjod3BZp7KzDZj4jcH2ZvmaCpoK56r3kM74/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/AVvXsEg0cIVCvINaehOaiifTkbzyfKTs1JTKfkKeqheys41z4_zyz5cKZVVaKw6lDKfgdSkRs5UrwP7SnBdjUZKHFqAzdM8REp-FZoosr6HLpSd1A6G4L48VSYSBPfBAEIVp35wJf1o9b8uo3iE/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/AVvXsEgCkCvZPqXMefVs9W3zuaJKvpcjJKdPZuC-EChK_6cOYRhjg2-mivTNUfjB6w36scgwo24S7OPmZdWT6qpJcsVXQhLvqeHRdyzMYPEvf4z4ilwiQ-Fi5qMz8lk28nBAVbFTFo5U_fyZ2a4/s1600/blogger-peer.gif' style='border: 0px; margin: 0 0 5 0; padding: 0 0 0 0;'/></a></div>
</td></tr>
</table>
</b:if>
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.
http://bloggerpeer.blogspot.com/2012/08/cara-membuat-tombol-share-widget-dengan-efek-jquery-nudging.html
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/AVvXsEiZCtIZXyTS0-vfVDsZgRurLaC-A367VfHEDeV0tyLPB_vUq9BsFttMc0Nv1B8HQShsf3nHhTkprwR6VqJm-qR14hrC_e0DVOa_oNOhN7NuQjSw8L_eS57HeB6l2bpxea0_o21sQ2SMTF0/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/AVvXsEj08YEbF-WbTzIfeXsEb_2xHBmdnkp1lfUGV2dwiNFGz8J8IrDX09U5RZkUgxBq9hIjc4LrR8ROvwLo0dgvmE0zMUn2VBWVks4ONnS7z2n1pAxCddCkTxH9KhTVAa_Ws9GXYMhBZe7Z-W8/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/AVvXsEjNVNutHIPLKFBJwrBd7vPbhhDkmiQguPgj0_MZYmPg3zY5QzaOiKmQfx16yZTKBB3FnTOHHeqa7Llm7yW6AcUOIeX-4waiytYmfm-WUojGsOoF7F3XdxhmXWpQxESYsCRT-f4mK9JgeEo/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/AVvXsEg-95IGfqSOBrJlc_g8ClUS5T3iLkWU-Hgj3ZzDZNPBuXHUtK_BNCuAtyiRstqkRmfPWzi_gyJS1hQLEBUsnjsVjS-hScBipceIqLEP-rG6p0lo7mlyXvSTGu3LyyORW4cMEzilXAyPA38/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/AVvXsEgg1nU9GbGm8hFeaqfYKZWBDq3TLEUhMqZBU1vkhxvKBzq61XmbVTx6Sxl8lZOUPBJ1Lz1nsasnZ03pP-YO2L9FmdGSiP9pe1oR6Uz2g7VDE7xh1ohwMByYbVavLgjkZPkRpvYXSN-sGaI/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/AVvXsEi6l6U0qvhLkKJ4pGM0H1MaemP6drQQqPkqkL69p_090wVjiqgJtGuiqAG9E_VfHxdMgk5hmKQKMd8xLHUORawmdjOBqGeY_SHUBuNOa0OQCYIJpUCqt3fXI9opuU7WZspgZcCTn3055g0/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/AVvXsEjViXf4tkpqgU4g2bXm_hI2qaEZafuMordFArYslWDoujFtfsRYIwRqBoK2CyCl9L5L1938B3fpHlMp9aA2vn38elO-WTxEurldd6BiQJBtoHIEuuNi-7UnffTqT6jll937uQ_mI1dW5qY/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/AVvXsEimAK8zrGR-Yu6Wzbx5z5rktgNjr3-tdMK9dKrW74cUOEscf0lLDiw_ainp9S6V0-ozxtHYXB0R49RBkvwJSJMjWoQcZgg1RSo7enFvWt3W7STok-qNSlUl0raYo6Bv5Kqc9_-saIH51LM/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/AVvXsEhuq_hyphenhyphenSzgSZeOzQlI8EqbfaQuj57r1M1fM4XplLQ1lpvh8JJ53arL_H9JX8_B-x9HbgtRvMpaabqX7H1xOqRiFlFVI4A_BQHO7e4wNEoI1txlamLFTDqY910RW03RHKGq5-G5Cq-WMbi0/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/AVvXsEimvrGB_3tMFbguDXGmrzx24JMYTRLpFHQIdJcnXVlxJNHI4M14aUd0yA2-wDnVtGWBQHGzuFpDVRE13wiHhyphenhyphenK1DhugCaWxEJ3EscFijszgkjod3BZp7KzDZj4jcH2ZvmaCpoK56r3kM74/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/AVvXsEg0cIVCvINaehOaiifTkbzyfKTs1JTKfkKeqheys41z4_zyz5cKZVVaKw6lDKfgdSkRs5UrwP7SnBdjUZKHFqAzdM8REp-FZoosr6HLpSd1A6G4L48VSYSBPfBAEIVp35wJf1o9b8uo3iE/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/AVvXsEgCkCvZPqXMefVs9W3zuaJKvpcjJKdPZuC-EChK_6cOYRhjg2-mivTNUfjB6w36scgwo24S7OPmZdWT6qpJcsVXQhLvqeHRdyzMYPEvf4z4ilwiQ-Fi5qMz8lk28nBAVbFTFo5U_fyZ2a4/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.
http://bloggerpeer.blogspot.com/2012/08/cara-membuat-tombol-share-widget-dengan-efek-jquery-nudging.html
Komentar