资 源 简 介
Most everybody who ever needed a custom-designed scrollpane has heard of the robust fleXcroll script.
This plugin is based on fleXcroll.js and extends it for easier long-term management of application UI.
Does not support horizontal scrolling.
Usage:
1) initialize CSS attributes
$("body").customScrollbarCss(
"scrollbar.png", //imageURL for the scrollbar chrome
"9px", //width of bar and track (must be the same in image)
"14px", //top and bottom arrow image height
"9px" //height of top and bottom handle edges
);
2) set up each scrollpane
$("#mycustomscroll").addClass("flexcroll").css({
width: "300px",
height: "250px",
border: "1px solid #ccc",
overflow: "auto", // for IE
position: "relative" // for IE, must be relative or absolute
});
3) use supplied image to see the chrome elements pattern. watch logical positioning of various elements, this plugin relies on