移动浏览窗口向下一个div的当由AJAX&安培加载的位置; jQuery的安培、加载、窗口、位置

由网友(泡8喝9玩10尚)分享简介:我有一个div成我动态阿贾克斯,jQuery的加载数据。像I have a div into which I am loading data dynamically by ajax, jquery. like$('#wp').load('http://someurl.com/getit',p,function(st...

我有一个div成我动态阿贾克斯,jQuery的加载数据。像

I have a div into which I am loading data dynamically by ajax, jquery. like

$('#wp').load('http://someurl.com/getit',p,function(str){} );

现在,因为我该div之前有网页完整的数据我需要后,被装入慢动作像计算器相似的效果向下移动浏览器窗口的div的位置。请帮助提前me.Thanks。

Now because I am having page full of data before that div I need to move the browser window down to that div's location after it is loaded with slow motion like the similar effects in stackoverflow. Please help me.Thanks in advance.

推荐答案

试试这个插件: http://flesler.blogspot.com/2007/10/jqueryscrollto.html

在你加载内容到DIV,调用

After you've loaded your content into the DIV, call

$ scrollTo(#你-DIV-ID-在这里,{时间:1000});

$.scrollTo("#your-div-id-here", {duration: 1000 });

持续时间以毫秒为单位滚动动画。

duration is in milliseconds for the scroll animation.

阅读全文

相关推荐

最新文章