jQuery自定义内容滚动条无法保存位置


jQuery custom content scroller unable to save position

我有一个关于jQuery自定义内容滚动条的问题。

http://manos.malihu.gr/jquery-custom-content-scroller/

当我用jQuery $("id").hide();$("id").show();隐藏和显示这个滚动条时,它将滚动条的位置移动到顶部。我可以保持滚动位置,使其不移动吗?

你可以这样写,

var scroll = $(window).scrollTop(scroll);

(html)美元.scrollTop(滚动);