Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An handy jquery scrolltop script animated.
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ScrollTop.php
readme.md

readme.md

What this extension do!?

This is a funny extension that simply add a scrolltop link to our pages:

$(function() {
    $("#' . ($this->id + '_' + ScrollTop::$counter) . '").click(function() {
        $("html,body").animate({ scrollTop : 0 }, "' . ($this->speed) . '");
            return false;
        });
    });
');

echo '<a href="#" id="' . ($this->id + '_' + ScrollTop::$counter) . '">' . ($this->label) . '</a>';
Something went wrong with that request. Please try again.