1 <script>
 2  var start=0;
 3 var n;
 4  function init(){
 5   start++;
 6   }
 7  function process(i){
 8   n=setTimeout("init()",1000);
 9   if(start>i){
10    clearTimeout(n);
11     start=0;
12 //这里写你需要执行的代码
13   }
14 }
15 </script>
posted on 2008-02-03 11:23  cqsar  阅读(136)  评论(0编辑  收藏  举报