スクロールダウン/アップ時にバーに続くjqueryがありますが、遅延CSSがあります
#rightbar_scroll {position: absolute;top: 0;right: 0;z-index: 10000; }
jQuery(document).ready(function(){
var jQuerysidebar = jQuery("#rightbar_scroll"),
jQuerywindow = jQuery(window),
offset = jQuerysidebar.offset(),
topPadding = 20;
jQuerywindow.scroll(function() {
if (jQuerywindow.scrollTop() > offset.top) {
jQuerysidebar.stop().animate({
marginTop: jQuerywindow.scrollTop() - offset.top + topPadding
});
} else {
jQuerysidebar.stop().animate({
marginTop: 0
});
}
});
});
遅滞なくお願いしたいのですが、このサイトで質問するとき、右側に「類似の質問」ボックスのような位置を追加するにはどうすればよいですか?
ありがとう、ごめんなさい、私の英語が下手です