2009-11-01 247 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