jquery プラグインの Smoothdivscroll にいくつか問題があります。
基本的に、プラグインを次のページとして実行しようとしています: http://www.smoothdivscroll.com/demo.html
ただし、自動的にスクロールする必要があるため、javascriptを変更しましたが、ホットスポットも機能するようにしますが、ホットスポットを離れたマウスでは自動スクロールに戻ります。
以下のコードは機能しますが、トリガーを右側に置いた後、最初の div に「リセット」されます。
設定した位置からスクロールを再開するように設定する方法はありますか?
コード:
// Initialize the plugin with no custom options
$(document).ready(function () {
// I just set some of the options
$("div#makeMeScrollable").smoothDivScroll({
mousewheelScrolling: true,
visibleHotSpotBackgrounds: "always",
autoScrollingMode: "endlessright"
});
});
//This is just to make the scroller pause...
$("#makeMeScrollable").bind("mouseover", function() {
$(this).smoothDivScroll("stopAutoScrolling");
}).bind("mouseout", function() {
$(this).smoothDivScroll("startAutoScrolling");
});