Autoscrolling a DIV element
I have an auto overflowed DIV on my page, what i want to do is to make it开发者_开发知识库 start scrolling slowly towards the end of items of the DIV on page onload.
is that easy u think ?
$("#divID").animate({'scrollTop': '600'}, 5000);
For instance.
Yes. Use the .load()
event in jQuery to install a timer which updates the scroll position of the DIV using .scrollTop()
精彩评论