浏览器滚动条替代品:Scrollator

jopen 10年前

Scrollator 是基于 jQuery 的浏览器滚动条替代品,不占用任何的空间,并且性能超好。

Usage

include in head:
<script src="jquery-1.11.0.min.js"></script>  <script src="fm.scrollator.jquery.js"></script>
to activate replacement:
$(document.body).scrollator(); 

or

$('#scrollable_div').scrollator(); 
if you want to change settings:
$('#scrollable_div').scrollator({      custom_class: '',   // A class to be added to this scrollator lane      zIndex: '',         // z-index to be added to the scrollator lane  });

在线演示浏览器滚动条替代品:Scrollator

项目主页:http://www.open-open.com/lib/view/home/1411913321125