CSS
2
Вклад в тег
jQuery(document).ready(function() {
jQuery("#scrollup").mouseover(function() {
jQuery(this).animate({
opacity: .65
}, 100)
}).mouseout(function() {
jQuery(this).animate({
opacity: 1
}, 100)
}).click(function() {
$("html, body").animate({
scrollTop: "0px"
});
return !1
});
jQuery(window).scroll(function() {
0 < jQuery(document).scrollTop() ? jQuery("#scrollup").fadeIn("slow") : jQuery("#scrollup").fadeOut("slow")
})
});
#scrollup {
position: fixed;
width: 35px;
height: 35px;
right: 20px;
bottom: 40px;
display: none;
cursor: pointer;
background-repeat: no-repeat;
background-position: -3px -76px;
background-image: url('data:image/png;base64....)