2009-11-01 246 views

回答

0

来源:http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html

使用

就包括在 你的页面头部以下文件:

* jQuery (I'm using 1.2.6 here) 
* the mouse wheel plugin (if you want mouse wheel support) 
* the jQEm plugin (if you want your scroll panes to automagically resize when the user changes text size) 
* jScrollPane.js 
* jScrollPane.css 

看看这个例子在页面上看看它是如何完成的。

编辑:对不起,我误解你的帖子,你用鼠标悬停事件来代替。

你可以做的是:

绑定的上下按钮的mouseover事件处理程序,使他们调用$(this).click();

+0

是的,我知道如何初始化它,但我想用鼠标悬停。我会研究你的建议。 – 2009-11-01 18:31:43