我在姓名 和奖品输入文字
能够在上面的红色方块上滚动显示出来
再加个计数功能要一个单页面HTML还没写完整 大家帮忙看看吧 明天要用,好急啊。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
background-image: url(000.jpg);
}
.STYLE1 {color: #FFFFFF}
-->
</style></head><body>
<table style="position:absolute; top:293px; left:86px; width:376px; border:0px solid #ccc; height: 370px; background-color: #FF0000; layer-background-color: #FF0000;">
  <tr>
    <td><span class="STYLE1">kjkkj</span></td>
  </tr>
</table>
<table style="position:absolute; top:290px; left:532px; width:376px; border:0px solid #ccc; height: 370px; background-color: #FF0000; layer-background-color: #FF0000;">
  <tr>
    <td>kjkkj</td>
  </tr>
</table>
<table style="position:absolute; top:290px; left:975px; width:376px; border:0px solid #ccc; height: 370px; background-color: #FF0000; layer-background-color: #FF0000;">
  <tr>
    <td>kjkkj</td>
  </tr>
</table>
<div style="position:absolute; top:679px; left:86px; &gt;
&lt;form id=; width: 68px;"form1" name="form1" method="post" action="">
  <input name="textfield" type="text" value="" />
  <form id="form2" name="form2" method="post" action="">
    <label>
    <input type="submit" name="Submit2" value="提交" />
    </label>
  </form>
 
</div>
</body>
</html>

解决方案 »

  1.   

    <script type="text/javascript">
    <!--
    function input(){
    if(window.document.forms.form1.textfield.value){
    document.getElementById("table1").innerHTML="<tr><td>"+window.document.forms.form1.textfield.value+"</td></tr>";
    }
    }
    -->
    </script><table  id="table1" style="position:absolute; top:293px; left:86px; width:376px; border:0px solid #ccc; height: 370px; background-color: #FF0000; layer-background-color: #FF0000;">
      <tr>
      <td><span class="STYLE1" >方框</span></td>
      </tr>
    </table>
    <form id="form1" name="form1" method="post" action="">
      <input name="textfield" type="text"  onchange="input()"/>
    </form1>这样就可以实现当你文本框里面的内容改变时,就会在那个红色区域显示,不知道是不是你想要的结果我没有写完善的,只是给楼主参考一下。里面很多都要改。
    你说的那个计数功能不是很明白你要什么计数功能