Monday, August 28, 2017

Cara Pasang Back To Top di Blog


Annyeong/Moshi-Moshi/Hallo/Hai..

Gimana kabarnya semua? Baik kan pastinya. 

Hari ini aku mau post cara menambahkan Back to Top di dalam blog.


Read More Yuk!
NB: DOUBLE CLICK UNTUK COPY KODE 

1. Masuk ke Blogger//Tema.

2. Cari kode

>head<


3. Masukkan Kode di bawah ini. ( yg sudah ada tidak usah :)

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'/>


4. Klik SAVE


5.Masuk ke Tata letak//Add a Gadget//Html/JavaScript

6. Copy kode ini di konten yang ada

<style>
.mbw-back-to-top {
position: fixed;
bottom: 2em;
right: 10px;
text-decoration: none;
padding: 1em;
display: none;
cursor:pointer;
}
</style>
<img class="mbw-back-to-top" src="http://4.bp.blogspot.com/-hsRaTBL9lpY/USDb4Wzo2WI/AAAAAAAAAiU/2eSTakNmCOE/s1600/back+to+top.png" />
<script type="text/javascript">
/*****mybloggersworld.com***/
jQuery(document).ready(function() {
var offset = 220;
var duration = 500;
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > offset) {
jQuery('.mbw-back-to-top').fadeIn(duration);
} else { //www.mybloggersworld.com
jQuery('.mbw-back-to-top').fadeOut(duration);
}
});

jQuery('.mbw-back-to-top').click(function(event) {
event.preventDefault();
jQuery('html, body').animate({scrollTop: 0}, duration);
return false;
})
});
</script>



7. SAVE

NB: merah : URL image kamu


FREEBIES

http://4.bp.blogspot.com/-wYOM_H8rj9s/UepySPCU4-I/AAAAAAAAA3g/mggRQ7U_W6Q/s1600/back+to+top+2.png


http://4.bp.blogspot.com/-uzyP_LBu3WA/Uep2ULHwl_I/AAAAAAAAA4w/gB1o42YGm0I/s1600/back+to+top+10.png



http://1.bp.blogspot.com/-0bAnpETl4aM/UepyWfQD99I/AAAAAAAAA4g/w67XHoyqwHo/s1600/back+to+top+9.png






credit:  ka dila dan gifta
Semoga Bermanfaat = )

0 Commentator(s):

Post a Comment

Hey let's make a discuss below! I'm sure you know how to respect people's page, no harsh and mature content. thank you babies!

 

a nefelibata's Template by Ipietoon Cute Blog Design