Cara Membuat Tombol Share Dengan Efek jQuery,
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.
Banyak dari para pengunjung bertanya kepada saya apakah script jQuery
tidak berat ketika di load? jawabannya adalah TIDAK, script jQuery ini
sangat ringan jadi jangan khawatir untuk memasang script jQuery pada blog.
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/AVvXsEiZgQLNfF1Grcxw5dNOEbcXY-peT9qIXD7_hzR4X40TzfXhhbiQ7CWbSqOzQRBAyEoi-zBlgPcYvQnZf4iLZngGSkZKUTEOSGkSKsoiFfkdZCAEI-uQ_yAOVxeFIELySCyGPSgQdLoSpEI/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/AVvXsEif_CsqSFGdWHbaV2wejY7ksTBSV4utDne-3hA9NLNrlVBzRXVQ_P9shKhkDw7f3PhflfWOdqdVG-vgCN1WrekJgZGREV49rPa9sOECzKSjbr1PAAXAIo76Gx3wwklWmBMJ_oKAeUbu_0Q/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/AVvXsEjVyM2L3ZXOIiRiRliX5NeGsswMnRtPaCDjcz7rEmWbe23_FeB11rVfplrfxX7Yum1TFUlTcdEC583eL4XEs-vB4ZT6VncYM522yVr_r8ErdzZh60jvtt7zu-9c5n6_Au90f1AMr51GNw0/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/AVvXsEiY9X1Jly0ljJq-d9FCvVb_8ObH9_dcsdDwK4q1P6PIAv9P9xN-4e_Qxb0Rr1iwDy5MvxcJvKdYqCX0lubY6mJsFmJesVdB-h3MyvbRR18-8j1O0pWaYlBBKf7oPB270Vzhm5i0HRdcJ1U/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_i8qWqtCDsfUYZi-uYC2-ro7zfINybF6dJpkkiWgM97nF71rn6VXXBbFOpwRf-8ev89pdizTdcDjQGGJ6tNwWYGIHTg8G1mX8TkE-3YlxxI3fulfUdDiBIzI746_UPZU9WoNADRaW60w/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/AVvXsEisCAXK_u1sxnbrOV0wLveCYwBGsqcrjaZ062Exr4BTggjcHmAL5W4k06ercosFtiVKok98mC261scUgx0Kvzc2RVXFZM3973MHfPrTd-2hN7zH5hcKkgPN-j0t8fjc_PWMyxXRs6MLXoo/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/AVvXsEjWbJYSmpUlKUk7-WVqzmzmXolM1OkHAdisRS9_QDs-5mozRm6ui4lxwl_j_tJ0eO_p3gGrU9Nx9sAY00f4p1-a76FU0BU7zCHav__Rat4jgoyaq4ahBmEI7FoDpV8Aw52pKNC2IPURltg/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/AVvXsEhFHJyaANfLVb9zFw8_dBZwp781QevPPHB5l-Prwj8BV6LQWS41YCxK1hq03obBxwcimknrxaAlwYu1bo9DSMnUQeoO80QoKM6OPSshLkhA8KG0iUgCDdURTrnr0mH318foMOasZfjQwu0/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/AVvXsEhbXqqg7RN6RblqfC_aaRLaAVePrBFdpCnBBuiBnh69cFdtO_jAWBNOW_xkPfXp3LWRzHxoFhG49O5F0CuVQmz8nGWpKI_RngVog8WRVhpFtd7EHgeKoXdje1eEyIhDaUBsuHJgwxE_kK0/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/AVvXsEj_q_XFQ01g8lCFlNIzd0r0WgdD24CejDbvsgCugSqFCClkqLi8zEcJThyGEbNcU8Qe2nBUdxLYaeTWlLj_0yZkrAKcdTyT2wEU5-9gEcPo1xXqkkjIk8ta9Z1rsqNEJNMdb7kMREwEutI/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/AVvXsEjnTYXkWmzQzT4ccMx130lnBOGWFVDrb0cshLO-_fXEaIeyOoyvOt635vSet_h3FtyNvCOs6PtRlcs5I-JkPK4z3NLb3Ou4l63iebIkhWyLpKQ04KsN9HZQUdYhNqR6bvfN-2iPuslTSQ0/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/AVvXsEgMv5tQKL6uzYF02EmOY6wqWEpr8KJKnAo0HjW5zL9ZNZmjw4sO5_RMCtW9PMJffKNTdjdiM9LavQSMj5D5ewy2MpuxLLYSUtVLzJndoDLEVIFJMPgm67v-nyd6xKZAMRV-GR18dzWfwXg/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
PENTING: 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.
0 comments:
Post a Comment