Based on the jquery development of processing and beautification of the scroll bar JS package, the current version of Sptbar0.5beta, only 7k
Download Address: http://down.51cto.com/data/559830
Version features:
IE6 is not supported for the following versions, other versions are supported
Support for window and document scroll bar processing only
Version 1.0 will support div scroll bar processing
Statement:
Comply with the LGPL agreement
If there is a bug, please feedback to me, thank you. Can be feedback in the reply, or my email: sunspot_java@yahoo.cn
The effect chart is as follows:
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/jquery/
Code and API sections:
<script type= "Text/javascript" > $ (function () {/** * sptbar parameter: * x:string
* Auto (default), yes,no x axis display: Automatic, always, do not display * y:string * AUTO (default), yes,no x axis display mode: Automatic, always, do not show * xscale:double * 1 (default), x-axis display scale, Range: 0-1 * yscale:double * 1 (default), y-axis display ratio, fan Wai: 0-1 * move:function (isy,scrollbartop,bodytop) * Event triggered when scrolling occurs * @param isy:boolean whether the y-axis is
Move * @param scrollbartop:double scroll bar distance from the top of the scroll Groove * @param bodytop:double page Content scrolltop * *
$ (window). Sptbar ({x: ' auto ', y: ' Auto ', yscale:0.7, xscale:0.7, Move:function (isy,scrollbartop,scrolltop) {document.title = (Isy?)
Y-Axis move ": X-axis move") +scrollbartop+ "," +scrolltop;
}
});
}); </script>
This article from "Bo Far to Quiet" blog, please be sure to retain this source http://sunspot.blog.51cto.com/372554/1034926