var currentPosition,timer;
함수 GoBottom(){
timer=setInterval("runToBottom()",50);
}
함수 runToBottom(){
currentPosition=document.documentElement.scrollTop || document.body.scrollTop;
현재 위치 =30;
if(currentPosition{
//window.scrollTo(0,currentPosition) ;
//alert(document.documentElement.clientHeight " " document.documentElement.scrollTop " " document.documentElement.scrollHeight "#" document.body.clientHeight " " document.body.scrollTop " " document.body.scrollHeight);
document.body.scrollTop = currentPosition;
}
else
{
document.body.scrollTop = document.body.scrollHeight;
clearInterval(타이머);
}
}