|
|
|
13년 전
|
조회 1,621
|
|
|
|
13년 전
|
조회 1,623
|
|
|
|
13년 전
|
조회 1,538
|
|
|
|
13년 전
|
조회 1,667
|
|
|
|
13년 전
|
조회 1,553
|
|
|
|
13년 전
|
조회 2,536
|
|
|
|
13년 전
|
조회 1,552
|
|
|
|
13년 전
|
조회 1,556
|
|
|
|
13년 전
|
조회 1,788
|
|
|
|
13년 전
|
조회 2,499
|
|
|
|
13년 전
|
조회 1,598
|
|
|
|
13년 전
|
조회 1,275
|
|
|
|
13년 전
|
조회 2,012
|
|
|
|
13년 전
|
조회 2,024
|
|
|
|
13년 전
|
조회 1,740
|
|
|
|
13년 전
|
조회 1,864
|
|
|
|
13년 전
|
조회 1,556
|
|
|
|
13년 전
|
조회 1,559
|
|
|
|
13년 전
|
조회 1,822
|
|
|
|
13년 전
|
조회 1,554
|
댓글 2개
$(function() {
var $sidebar = $("#sidebar"),
$window = $(window),
offset = $sidebar.offset(),
topPadding = 15;
$window.scroll(function() {
if ($window.scrollTop() > offset.top) {
$sidebar.stop().animate({
marginTop: $window.scrollTop() - offset.top + topPadding
});
} else {
$sidebar.stop().animate({
marginTop: 0
});
}
});
});
css 는
#sidebar {
width: 넓이 정하시고;
position: fixed;
margin-left: 왼쪽 마진 잡으시고;
}
맘에 드시는게 있으시면 아무거나 ctrl+c, v 하셔서 쓰시면 되요.
스크롤메뉴 로 검색해보세요.