Log in ke blogger
Klik Template
Klik Edit HTML
Masukkan kode berikut di atas kode ]]></b:skin>
#flt-box{margin-left:-120px;background:#eee;position:absolute;-webkit-border-radius:3px;border-radius:3px}Masukkan kode berikut di atas kode </head>
#flt-box .wdt{padding:5px;text-align:center}
#flt-box.fixed{position:fixed;top:20px}
<script src='//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/>Selanjutnya masukkan kode berikut di atas kode <data:post.body/>
<script>
$(function(){
var $aside = $("#flt-box"),
$window = $(window),
$offset = $aside.offset().top-20;
$window.scroll(function() {
if ($window.scrollTop() >= $offset) {
$aside.addClass("fixed");
} else {
$aside.removeClass("fixed");
}
});
});
</script>
<b:if cond='data:blog.pageType == "item"'>Selanjutnya klik Simpan Template dan lihat hasilnya.
<div id='flt-box'>
<!-- Tweet Button -->
<div class='wdt'><a class='twitter-share-button' data-count='vertical' data-via='User-Name' expr:data-text='data:post.title' expr:data-url='data:post.canonicalUrl' href='http://twitter.com/share'>Tweet</a><script src='//platform.twitter.com/widgets.js' type='text/javascript'/></div>
<!-- Facebook Like (XFBML) -->
<div class='wdt'><div id='fb-root'/><script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/><fb:like expr:href='data:post.canonicalUrl' font='lucida grande' layout='box_count' send='true' show_faces='false' width='55'/></div>
<!-- Plus One -->
<div class='wdt'><g:plusone expr:href='data:post.canonicalUrl' size='tall'/><script src='https://apis.google.com/js/plusone.js' type='text/javascript'/></div>
<!-- Pinterest -->
<div class='wdt'><b:if cond='data:post.thumbnailUrl'><a class='pin-it-button' count-layout='horizontal' expr:href='"http://pinterest.com/pin/create/button/?url=" + data:post.url + "&media=" + data:post.thumbnailUrl + "&description=" + data:post.title'>Pin It</a><b:else/><a class='pin-it-button' count-layout='horizontal' expr:href='"http://pinterest.com/pin/create/button/?url=" + data:post.url + "&media=http://your-image.jpg&description=" + data:post.title'>Pin It</a></b:if><script src='//assets.pinterest.com/js/pinit.js' type='text/javascript'/></div>
</div>
</b:if>
Demikianlah tutorial modifikasi floating social widget. Semoga bermanfaat bagi kita semua, amin. Selamat mencoba dan sukses selalu.
"keep spirits and do the best"