友人のためにインストールしたテーマで jScroll を使用していくつかのスクロールバーのスタイルを設定しようとしましたが、戻ってきました
Uncaught TypeError: Cannot read property 'offsetHeight' of undefined
tinyScrollbar と呼ばれる別の jQuery プラグインを試してみましたが、同じことをしています。私は !何が問題なのかを確認してください =。CSSで変更できますが、Firefoxでは機能しません。これは本当に面倒です。うまくいかない理由はありますか?
URL: http://spicyjentertainment.com/welcome.html
This = div that = スクロールすると仮定
<div class="wrapper" id="scrl">
そして、CSS
#scrl {
height:150px;
overflow:hidden;
}
#scrl:hover {
overflow-y:auto;
}
編集
var initDrag = function()
{
ceaseAnimation();
currentOffset = $drag.offset(false);
currentOffset.top -= dragPosition;
maxY = trackHeight - $drag[0].offsetHeight;
Uncaught TypeError: Cannot read property 'offsetHeight' of undefined
mouseWheelMultiplier = 2 * settings.wheelSpeed * maxY / contentHeight;
};