jQuery scroll to top

    [javascript]
    <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    <script>
    $(document).ready(function() {
    $(‘img#top’).click(function() {
    $(‘html, body’).animate({scrollTop: 0}, 300);
    });
    });
    </script>
    [/javascript]

    Leave a Reply