backtotop This small widget provide back to top function to your page

This widget wraps BackToTop jquery plugin.

http://www.myjqueryplugins.com/jquery-plugin/backtotop

Usage ΒΆ

You can copy widget into extensions folder, such as:

protected/extensions/backToTop

Use it in your view file:

$this->widget('ext.backToTop.BackToTop',array(
    'text'=>'Back To Top',
    'autoShow'=>true
));

List of options for this widgets:

text: String, Default : '^ Back to top' - Text written into the link

autoShow: Boolean, Default : true - Does the link appears during scrolling the page or is always displayed ?

timeEffect: Integer, Default : 500 - Duration (in ms) of the scrolling effect, from the bottom to the top of the page

effectScroll: String, Default : 'linear' - all jQueryUI effects allowed

appearMethod: String, Default : 'slide' - How does the link appear ? Can be set to 'fade', 'slide' or empty

4 0
7 followers
499 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: David T
Created on: Nov 9, 2012
Last updated: 12 years ago

Downloads

show all

Related Extensions