[제나플러스] 퀵스크롤 소스
본문
<div id='left_menu' style='position:absolute; width:101px; left: 0px; top: 36px; height: 291px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;'>
내용
</div>
<script language=javascript>
var min = 178;
var min2 = min - 50;
var max = 0;
function left_move_init() {
itm = document.getElementById('left_menu');
itm.set_pos = function(y){itm.style.top=y;};
itm.y = min;
itm.set_pos(itm.y);
max = document.body.scrollHeight - itm.scrollHeight - min;
setTimeout('left_move_func()', 10);
}
function left_move_func() {
tmp = document.body.scrollTop + min;
itm.y += Math.floor((tmp-itm.y)/10);
if( itm.y>max ) itm.y = max;
if( itm.y<min ) itm.y = min;
itm.set_pos(itm.y);
setTimeout('left_move_func()', 10);
}
setTimeout('left_move_init()', 500);
</script>
댓글목록 0
등록된 댓글이 없습니다.