jquery 实现滚屏 轮播

使用

animate()方法;

不多次执行animate;

<script type="text/javascript">  
$(document).ready(function(){
    $("#start").click(function(){
        if($("#box:animated").length==0)就是这句话
        {
            $("#box").animate({height:300},"slow");
            $("#box").animate({width:300},"slow");
            $("#box").animate({height:100},"slow");
            $("#box").animate({width:100},"slow");
        }
    });
});
</script> 

  

posted @ 2016-02-15 22:06  forgere  阅读(157)  评论(0编辑  收藏  举报