JS 仿腾讯发表微博的效果代码(7)

timer && clearInterval(timer);
        timer = setInterval(function (){
            $(oLi).css({"display" : "block", "opacity" : "0", "height" : (count += 8) + "px"});
            if (count > iHeight){
                    clearInterval(timer);
                    $(oLi).css({ "height" : iHeight + "px"});
                    timer = setInterval(function (){
                        $(oLi).css({"opacity" : alpah += 10});

alpah > 100 && (clearInterval(timer), $(oLi).css({"opacity":100}));

},30);
                }
            },30);
     }
 };

// 初始化代码
 $(function(){
    new Microblog({});
 });

源码下载:(jb51.net).rar

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wdwzxx.html