RT,有段文字走马灯的代码在FF中不能跑,求帮忙改下,谢谢了!附上代码
window.onload=function(){
       var o=document.getElementById('marquee');
       window.setInterval(function(){scrollup(o,20,0);},2000);
}function scrollup(o,d,c){
       if(d==c){
              var t=o.firstChild.cloneNode(true);
              o.removeChild(o.firstChild);
              o.appendChild(t);
              t.style.marginTop=o.firstChild.style.marginTop='0px';
       }
       else{
              var s=3,c=c+s,l=(c>=d?c-d:0);
              o.firstChild.style.marginTop=-c+l+'px';
              window.setTimeout(function(){scrollup(o,d,c-l)},100);
       }
}
在线等,谢谢

解决方案 »

  1.   

    你只要在一个html里的关键的地方加一个退格键就行了,其他什么都不用改
      

  2.   

    不是说在线等么?人呢?还不把html贴出来?算了,不等你了,我吃饭去了
      

  3.   

    囧,不好意思!!我刚去吃了个饭!我错了姐姐
          <div id="marquee">  
               <!-- <ul id="data"></ul>
    <marquee id="a" onmousemove="a.stop()" onmouseout="a.start()" >
    <div align="center">1111111111111111111111111111111111</div>
    </marquee> -->
    <div><a href="#">文明游戏,礼貌待人!</a></div>
    <div>合理安排时间,按时收菜</div>
    <div>记得训练英雄,日常</div>
    <div>被人欺负了可以充金币,也可以喊人- -!</div> </div> 
      

  4.   

    测试过了 我这边ie ff都可以的,你不行的话赶紧说window.onload=function(){
           var o=document.getElementById('marquee');
           window.setInterval(function(){scrollup(o,20,0);},2000);
    } function scrollup(o,d,c){
    var hi = o.firstElementChild || o.firstChild;
           if(d==c){
          var t=hi.cloneNode(true);
          o.removeChild(hi);
          o.appendChild(t);
          t.style.marginTop=hi.style.marginTop='0px';
           }
           else{
          var s=3,c=c+s,l=(c>=d?c-d:0);
          hi.style.marginTop=-c+l+'px';
          window.setTimeout(function(){scrollup(o,d,c-l)},100);
           }
    }
      

  5.   


    for(var i=0;i<=1000000;i++)
    {
        alert("我错了,对不起姐姐- -!!!");
    }
    ]
      

  6.   

    啊貌似可以了。你改我的js代码了??我复制你发的代码就OK了- -
      

  7.   

    var hi = o.firstElementChild || o.firstChild;求解这句的功效  谢谢
      

  8.   



    http://dotnet.aspx.cc/file/firstElementChild-lastElementChild-previousElementSibling-nextElementSibling-childElementCount.aspx