<marquee direction="up" onmouseover="this.stop()" onmouseout="this.start()">12342<br>33434<br></marquee>

解决方案 »

  1.   

    <script language='JavaScript'>var strArray=new Array();
    strArray[0]='  4234343
    strArray[1]='  423434342343434234343
    strArray[2]='  <a href=http://abc.html><font color=#FFFFFF>三○四毫三</font></a>'showId=Math.floor(Math.random()*2);
    tempStr=strArray[showId];
    strArray[showId]=strArray[0];
    strArray[0]=tempStr;</script> <script>
    document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
    +'<tr><td width=20% align=center class=whiteText>'+s+'</td><td width=80%>'
    +'<div id="icefable1" style="width:100%;">'
    +'<table width=350 border=0 cellspacing=0 cellpadding=0>'
    +'<tr><td width=100% height=21 class="whiteText">'+strArray[0]+'</td></tr>'
    +'<tr><td width=100% height=21 class="whiteText">'+strArray[1]+'</td></tr>'
    +'<tr><td width=100% height=21 class="whiteText">'+strArray[2]+'</td></tr>'
    +'</table>'
    +'</div>'
    +'<div id="icefable2" style="position:absolute;z-index:1;visibility:hidden"></div>'
    +'</td></tr>'
    +'</table>');
    marqueesHeight=21;
    stopscroll=false;
    icefable1.scrollTop=0;with(icefable1){
    style.width=0;
    style.height=marqueesHeight;
    style.overflowX="visible";
    style.overflowY="hidden";
    noWrap=true;
    onmouseover=new Function("stopscroll=true");
    onmouseout=new Function("stopscroll=false");
    }
    preTop=0; currentTop=0; stoptime=0;
    function init_srolltext(){
    icefable2.innerHTML="";
    icefable2.innerHTML+=icefable1.innerHTML;    
    icefable1.innerHTML=icefable2.innerHTML+icefable2.innerHTML;
    setInterval("scrollUp()",50);
    }
    function scrollUp(){
    if(stopscroll==true) return;
    currentTop+=1;
    if(currentTop==22)
    {
    stoptime+=1;
    currentTop-=1;
    if(stoptime==50) 
    {
    currentTop=0;
    stoptime=0;
    }
    }
    else {  
    preTop=icefable1.scrollTop;
    icefable1.scrollTop+=1;
    if(preTop==icefable1.scrollTop){
    icefable1.scrollTop=icefable2.offsetHeight-marqueesHeight;
    icefable1.scrollTop+=1;
    }
    }
    }
    init_srolltext();
    </script>
      

  2.   

    <marquee direction="up" onmouseover="this.stop()" onmouseout="this.start()">34234343<br>三○四毫三
    <br>38844844484</marquee>这个就可以了,还没解决吗??