开发者

Hide search results until load and then fadeIn?

This code below fades out the first results then fades in too开发者_如何学Python early an the next results just appear anyway

$('.content .sub_cont').load('superfetch.php?val=' + $('.searchInput').val(), hideLoader(function() { $(this).fadeIn(1500); }));


try

$('.content .sub_cont').load('superfetch.php?val=' + $('.searchInput').val(), hideLoader(function() { $(this).delay(1500).fadeIn(1500); }));


How about this?

$('.content .sub_cont').hide(0);
$.get('superfetch.php?val=' + $('.searchInput').val(), function(data){
    $('.content .sub_cont').html(data);
    $('.content .sub_cont').hide(0); //Sometimes it will show it when changing the HTML
    $('.content .sub_cont').fadeIn(1500);
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜