修改了heihe view 中的相关搜索功能滚动条位置调整功能
This commit is contained in:
parent
098b250fbf
commit
6d192de3b9
|
@ -439,6 +439,7 @@ function googleSearch(keyword){
|
|||
});
|
||||
items.push('<li class="more"><a href="'+obj.responseData.cursor.moreResultsUrl+'" target="_blank">查看更多搜索结果(约'+obj.responseData.cursor.estimatedResultCount+'条)</a></div>');
|
||||
$('#searchlist').html(items.join(''));
|
||||
$('html, body').animate({scrollTop:$('html').height()}, 'slow');
|
||||
},
|
||||
beforeSend:function(){
|
||||
$('#searchlist').html('<img src="/images/loading.gif" />结果加载中');
|
||||
|
@ -463,6 +464,7 @@ function bingSearch(keyword){
|
|||
});
|
||||
items.push('<li class="more"><a href="http://cn.bing.com/search?q=<?php echo urlencode($ev); ?>&go=&qs=n&sk=&form=QBLH" target="_blank">查看更多搜索结果(约'+obj.SearchResponse.Web.Total+'条)</a></div>');
|
||||
$('#searchlist').html(items.join(''));
|
||||
$('html, body').animate({scrollTop:$('html').height()}, 'slow');
|
||||
},
|
||||
beforeSend:function(){
|
||||
$('#searchlist').html('<img src="/images/loading.gif" />结果加载中');
|
||||
|
@ -488,6 +490,7 @@ function cnkiSearch(keyword){
|
|||
});
|
||||
items.push('<li class="more"><a href="'+obj.morelink+'" target="_blank">查看更多搜索结果</a></div>');
|
||||
$('#searchlist').html(items.join(''));
|
||||
$('html, body').animate({scrollTop:$('html').height()}, 'slow');
|
||||
},
|
||||
beforeSend:function(){
|
||||
$('#searchlist').html('<img src="/images/loading.gif" />结果加载中');
|
||||
|
|
Loading…
Reference in New Issue