jQuery tscroll up

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $(function () {
        $('#homeup').click(function () {
            $('body,html').animate({
                scrollTop: 0
            }, 800);
            return false;
        });
var scrollHeight = $(document).height();
        $('#homedown').click(function () {
            $('body,html').animate({
                scrollTop: scrollHeight
            }, 800);
            return false;
        });
    });
  
});
</script>
Lovely Lyrebird