<marquee direction=up><a href="">aaa</a></marquee>

解决方案 »

  1.   

    每个浏览器通用的:http://devedge.netscape.com/toolbox/examples/2002/xb/xbMarquee/http://devedge.netscape.com/toolbox/examples/2002/xb/xbMarquee/
      

  2.   

    http://devedge.netscape.com/toolbox/examples/2002/xb/xbMarquee/examples/ch-pauser.html
      

  3.   

    <html>
    <head>
    <title></title>
    <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
    </head>
    <body>
    <table width="90%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
    <script language="JavaScript"> 
    var statues=1; 
    function movenow()
    {
      if (statues)
       {
        document.all.marquee2.stop();
        document.all.btn1.value="动";
    statues=0;
       }
       else
       {
        document.all.marquee2.start();
        document.all.btn1.value="停";
    statues=1;
        }
    }
       
    </script>
    <marquee id='marquee2' name='marquee2' behavior=scroll direction=down width=370 height=120 scrollamount=1 scrolldelay=80>
          我想做下面的效果:   开始进到页面的时候,显示从库里读出的前10条数据(静态),当我点击一个按钮(“动”),然后,原来的那个位置上面的就动态显示数据库里所有的数据(动态),再点击另一个按钮(“静”),就又停止动态,显示前10条! 
            我想,开始的时候,我就全部读出所有的数据,然后显示的时候,就定表格的高度,那样可以只显示前10条,但是,我怎么能用按钮去控制它动起来,好像marquee没有这样的属性啊,而且,marquee不是一个对象吧(因为没有name属性),我也就没有办法去控制,而且,就算我能控制,我要再重新显示前10条的时候,那应该怎么去控制?? 
          大侠,请帮忙帮忙,谢谢了! bow!
    </marquee>   
    </td>
      </tr>
    </table>
    <br>
    <br>
    <br>
    <input type="button" id="btn1" name="Submit" value="停" onclick="javascript:movenow();">
    </body>
    </html>
      

  4.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <style>
    <!--
            A:link {text-decoration: none; color: 0000FF; font-family: 新细明体}
            A:visited {text-decoration: none; color: 004080; font-family: 新细明体}
            A:active {text-decoration: none; font-family: 新细明体}
            A:hover {text-decoration: underline; color: FF0000}
    -->
    </style>
    <script language="JavaScript">
    <!--
    locate = 0;
    function scroller() {
    if (locate !=460 ) {
    locate++;
    scroll(0,locate);
    clearTimeout(timer);
    var timer = setTimeout("scroller()",3);
    timer;
    }
    }
    // -->
    </script><title>自动滚屏</title>
    <link rel="stylesheet" type="text/css" href="../../../fonts.css">
    </head><body topmargin="0" leftmargin="0" background="../bg.gif"  onload="scroller()"><iframe src="../../../sjieti/t4.htm" width="100%" height="100" marginwidth="1" marginheight="1" hspace="0" frameborder="0" scrolling="no" name="I1" align="center"></iframe> 
    <table border="0" width="100%" cellspacing="0" cellpadding="0" height="34">
      <tr>
        <td width="11%" rowspan="2" height="34"></td>
        <td width="79%" height="34" rowspan="2" background="bg.gif">
        <font color="#FF0000"><strong><a href="../index.html">回目录</a><br>
        </strong></font>
        <strong><a href="../../../index.htm">回首页</a></strong> <br>
        注意:<br>
        这是一页滚屏的测试页。<br>
        &lt;!--<br>
        locate = 0;<br> 
        function scroller() {<br> 
        if (locate !=500 ) {<br> 
        locate++;<br>
        scroll(0,locate);<br>
        clearTimeout(timer);<br>
        var timer = setTimeout(&quot;scroller()&quot;,3);<br> 
        timer;<br>
        }<br>
        }<br>
        // --&gt;<br> 
        &lt;/script&gt;</font></p>
        <p>修改&lt;body&gt;语句为:</p>
        <p><font color="#FF0000">&lt;body OnLoad=&quot;Scroller()&quot;&gt;</font></p>
        <p>可通过改动locate的数值来控制显示页面的长度(原代码中为locate!=600)。将“setTimeout(&quot;scroller()&quot;,3);”中的“3”改为其它的数字可控制速度。<br>
        </td>
        <td width="10%" height="16"></td>
      </tr>
      <tr>
        <td width="10%"></td>
      </tr>
    </table></body></html>