
- Silahkan login ke blogger
- Kemudian tujulah bagian Racangan
- Dan pilih yang Edit HTML
- masukan kode di jquery ini, di atas kode </head>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/> <!-- jika di template anda sudah terdapat script jQuery 1.3.2, maka anda tidak perlu lagi menambahkan kode ini -->
<script type='text/javascript'>
$(function(){
$('a[href*=#top]').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname) {
var $target = $(this.hash);
$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
if ($target.length) {
var targetOffset = $target.offset().top;
$('html,body').animate({scrollTop: targetOffset}, 1000);
return false;
}
}
});
});
</script> - Kemudian Ganti kode <body> dengan kode <body id='top'>
- letakan kode di bawah ini, di atas kode </body>
<div id='gotop'>
<a href='#top' title='Go to Top'>
<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6fMLmvQHvnV2K8w3Jcu6SS_pVxddw-x6KYwoHa-HvW9NeENmDLbpI_GKclvOxqECd5GoBXm8T-VSMbOCqWVbsZ5OJWAcqP4_BFk83NIFXw7EcvftyooOoOqSkYsFcFLLbpsEzGguVnMHc/s768/top.gif' style='right:20px;bottom:20px;position:fixed'/>
</a>
</div> - Selesai, dan silahkan menikmati back to top jquery
Jika masih ada kesulitan silahkan tinggalkan komentar pasti saya balas :D