使用javascript
animate()方法;java
很少次執行animate;blog
<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>