Print two simple buttons on the right/bottom side of the screen, for scrolling to the top or to the bottom of the page.
Usage ¶
$this->widget('ext.topBottom.scroll');
or
$this->widget('ext.topBottom.scroll', array(
'minDepth'=>1000,
'minHeight'=>500,
'fadeInTime'=>700,
'fadeOutTime'=>700,
'opacity' => 0.2, // ('opacity' = 0 vs. 'opacity' != 0 => different behavior)
'scrollTopTime'=>1000,
'scrollBottomTime'=>1000,
));
Change Log ¶
2013-05-31 -opacity property:
- if it's between 0 and 1 the buttons will not be hidden, but will fade to this opacity
- if it's 0 or bigger then 1 or if it's not present buttons have different behaviours...
this project on github
Starting from now this project can also be found on gitHub:
https://github.com/6firefly/TopBottom
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.