<marquee>hello world!</marquee>

解决方案 »

  1.   

      <body>   
      <div   style="width:543px;height:21px;overflow:hidden"   onMouseOver="stop()"   onMouseOut="start()">     
      <table   width="543"   border="0"   cellspacing="0"   cellpadding="0"   id="scrollimg"   height="21">   
      <tr>     
      <td   id="simg">   
      <TABLE   width="543"   border="0"   cellspacing="0"   cellpadding="0"   height="21">   
      <tr>   
                              <td><a   href="index.htm">不间断文字滚动</a></td>   
                          </tr>   
      </TABLE>   
      </td>   
      <td   id="simg1"></td>   
      </tr>   
      </table>   
      </div>   
      <SCRIPT   LANGUAGE="JavaScript">   
      var   tm=null   
      function   newsScroll()   {   
      if(scrollimg.parentNode.scrollLeft!=(scrollimg.clientWidth/2))   
      scrollimg.parentNode.scrollLeft++;   
      else   
      scrollimg.parentNode.scrollLeft=0   
      }   
      window.onload=function()   {   
      simg1.innerHTML=simg.innerHTML   
      tm=setInterval('newsScroll()',20)     
      }   
      function   stop()   
      {   
      clearInterval(tm)   
      }   
        
      function   start()   
      {   
      tm=setInterval('newsScroll()',20)     
      }   
      </SCRIPT>   
      </body> 
      

  2.   

    沾到html文件里 就可以直接用
      

  3.   

    <div width="300" border="0" align="center" cellpadding="0" cellspacing="0">
        <div id="marquees">
            <div style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px;
                border-collapse: collapse; border-right-width: 0px">
                阿斯顿发生大发
            </div>
        </div>
    </div><script language="JavaScript">marqueesHeight=130;
    stopscroll=false;with(marquees){
      style.width=0;
      style.height=marqueesHeight;
      style.overflowX="visible";
      style.overflowY="hidden";
      noWrap=true;
      onmouseover=new Function("stopscroll=true");
      onmouseout=new Function("stopscroll=false");
    }
    document.write('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>');preTop=0; currentTop=0; function init(){
      templayer.innerHTML="";
      while(templayer.offsetHeight<marqueesHeight){
        templayer.innerHTML+=marquees.innerHTML;
      }
      marquees.innerHTML=templayer.innerHTML+templayer.innerHTML;
      setInterval("scrollUp()",30);
    }
    document.body.onload=init;function scrollUp(){
      if(stopscroll==true) return;
      preTop=marquees.scrollTop;
      marquees.scrollTop+=1;
      if(preTop==marquees.scrollTop){
        marquees.scrollTop=templayer.offsetHeight-marqueesHeight;
        marquees.scrollTop+=1;
      }
    }
    </script>
      

  4.   

    额,忘记说了,我是用winform编的...应该怎么写呀...