jurusngeblog jurusngeblog jurusngeblog jurusngeblog jurusngeblog
1 2 3 4 5

Creating Back To Top Button With CSS & jQuery Effect

Back to top button with CSS and Jquery effects. This is the Shortcut to back it up when you are on the page Bottom of the blog.

If you want to see how it looks like what I have seen. Because I have been taking this back to top button.

This stance makes the button back to top.
- Copy the code below and Install before </body> in your template and Save. see the results.


<style type="text/css">
#w2b-StoTop {-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px; width:100px;background-color: #EEEEEE;background-color: rgba(238, 238, 238, 0.6);filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#99EEEEEE',EndColorStr='#99EEEEEE');text-align:center;padding:5px;position:fixed;bottom:10px;right:10px;cursor:pointer;color:#444;text-decoration:none;border:1px solid #C9C9C9;}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type='text/javascript'>
$(function() {
$.fn.scrollToTop = function() {
$(this).hide().removeAttr("href");
if ($(window).scrollTop() != "0") {
$(this).fadeIn("slow")
}
var scrollDiv = $(this);
$(window).scroll(function() {
if ($(window).scrollTop() == "0") {
$(scrollDiv).fadeOut("slow")
} else {
$(scrollDiv).fadeIn("slow")
}
});
$(this).click(function() {
$("html, body").animate({
scrollTop: 0
}, "slow")
})
}
});
$(function() {
$("#w2b-StoTop").scrollToTop();
});
</script>
<a href='#' id='w2b-StoTop' style='display:none;'>Scroll to Top</a>



You can Customize the CSS for Your Own Declarations and you can replace the text with Image also.

1 comments:

Stevanie Liem said... April 29, 2020 at 3:52 PM

Hari Keberuntungan Penjudi Menurut Zodiak Yuk Gabung Disini aja.. Penuh Dengan Kejutan Bonus Berlimpah Setiap Hari!!!

Post a Comment and Don't Spam!

 

Live Trafick

Google Bot :
Alexa :
Histats :
Seo Sta : SEO Stats powered by MyPagerank.Net

Buzz Boost

Msn bot last visit powered by MyPagerank.Net Yahoo bot last visit powered by MyPagerank.Net