0
我想允许自动滚动到下上加载的div然后禁用该功能之后,我可以怎么做自动滚动至底部,然后后停用成功自动滚动
//$("#chatroom").animate({ scrollTop: $(document).height() }, "slow");
var scrolled = 0;
$("#chatroom").animate({
scrollTop: $('#chatroom')[0].scrollHeight
}, 1000)
scrolled = 1;
$('#closechat').live('click', function() {
$('#chatroom').hide();
stoprefresh();
});