开发者

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()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜