// newsContentHeight - startPostion) // 뉴스 끝나는 지점에서 더 이상 내려가지 않도록 고정시킴
{
$("#popul").stop().animate({"top":newsContentHeight-populHeight+"px"},sec);
}
else
{
position = position + 130; // 여백
$("#popul").stop().animate({"top":position-max_position-ad_height+"px"},sec);
}
}
// slidemenu를 움직이기, animate메소드는 두개의 인자를 가진다
// animate("속성","값") or 위치, 시간
// position :1 + currentPosition : 현재 스크롤의 top 위치
});
}
});
function moveTI()
{
var sec = 1;
$("#ti_ad").hide();
max_position = -8;
$("#popul").stop().animate({"top":max_position+"px"},sec);
}
function errorTI()
{
startPostion = 175;
max_position = -8;
ad_height = 300; // 광고가 없어지면 광고 높이만큼 인기탑 뉴스 여백이 없어져야함
}
//setTimeout( moveTI, 5000);
//]]>