本帖最后由 AvaRich 于 2009-07-22 23:27:10 编辑

解决方案 »

  1.   


    <script type="text/javascript"> 
        function tryoo() 
            { 
    this.id=""; 
    this.value=0; 
    this.start=function() 
        { 
     this.roll();
        } 
    this.roll=function() 
        { 
        document.getElementById(this.id).innerHTML=this.id+"="+this.value; 
        this.value++; 
        } 
            } o1=new tryoo(); 
    o1.id="id1"; 
    setInterval("o1.start()",100);o2=new tryoo(); 
    o2.id="id2"; 
    setInterval("o2.start()",200);</script>看看这样符合要求吗
      

  2.   

    但是 在 th 前面加 var 限定作用域之后,直接不运行了。try也try不出个所以然。
    高手请继续。
      

  3.   

    还是希望可以直接用.start()设置setInterval(),否则n个实例要每个都去设Interval,而且.start()也没意义了。