帮忙看一下拉,我怎样在页面中插入一空行!

blue_butterfly 2003-10-17 01:54:23
偶需要做一个表单录入的程序,表单录入多少行不定,当录入一行数据后怎样操作会在表单里插入一空行,再录入第二条数据。

数据录入完毕后提交保存到数据表中

最后给偶一段代码。谢谢各位了!

偶,急呀~~在线等待!!!!!!!!!!!!
...全文
86 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
blue_butterfly 2003-10-17
  • 打赏
  • 举报
回复
关注呀!!各位!!
blue_butterfly 2003-10-17
  • 打赏
  • 举报
回复
to topmonkey(Java初学者)

怎样将 这句中的“insert rows”
newCol.innerText = "Insert Rows"

改为插入文本框?
rascal1980 2003-10-17
  • 打赏
  • 举报
回复
response.write " "&vbcrlf
或者用chr(10) chr(13)应该也可以...
topmonkey 2003-10-17
  • 打赏
  • 举报
回复
<Table id =a Width="" Align="Center" Border="1" Style="Word-Break:Break-All" CellPadding="2" CellSpacing="0" BgColor="#e7e7e7" BorderColorLight="#878787" BorderColorDark="#FFFFFF">
<tr>
<td>Normal</td>
<td>Rows</td>
</tr>
<tr>
<td>And</td>
<td>Cells</td>
</tr>
</Table>
<Script Language="JavaScript">
function java(){
var newRow = a.insertRow(-1);
var newCol = newRow.insertCell(-1);
newCol.innerText = "Java Script";
newCol = newRow.insertCell(-1);
newCol.innerText = "Insert Rows";
}
</Script>
<Script Language="VBScript">
Function vb()
Dim newRow, newCol
Set newRow = a.insertRow(-1)
Set newCol = newRow.insertCell(-1)
newCol.innerText = "VBScript"
Set newCol = newRow.insertCell(-1)
newCol.innerText = "Insert Rows"
End Function
</Script>
<center>
<Input Type="button" NAME="butJava" Value="JavaScript" onClick="java()">
<Input Type="button" NAME="butVB" Value="VBScript" onClick="vb()">
</center>
topmonkey 2003-10-17
  • 打赏
  • 举报
回复
<Table id =a Width="" Align="Center" Border="1" Style="Word-Break:Break-All" CellPadding="2" CellSpacing="0" BgColor="#e7e7e7" BorderColorLight="#878787" BorderColorDark="#FFFFFF">
<tr>
<td>Normal</td>
<td>Rows</td>
</tr>
<tr>
<td>And</td>
<td>Cells</td>
</tr>
</Table>
<Script Language="JavaScript">
var newRow = a.insertRow(-1);
var newCol = newRow.insertCell(-1);
newCol.innerText = "Java Script";
newCol = newRow.insertCell(-1);
newCol.innerText = "Insert Rows";
</Script>
<Script Language="VBScript">
Dim newRow, newCol
Set newRow = a.insertRow(-1)
Set newCol = newRow.insertCell(-1)
newCol.innerText = "VBScript"
Set newCol = newRow.insertCell(-1)
newCol.innerText = "Insert Rows"
</Script>
blue_butterfly 2003-10-17
  • 打赏
  • 举报
回复
用 blue.ling@126.com 吧

163的邮箱这会儿上不去
blue_butterfly 2003-10-17
  • 打赏
  • 举报
回复
to hover_online(ξ芎メ)

邮箱:blue.ling@163.com

blue.ling@126.com

谢谢!
hover_online 2003-10-17
  • 打赏
  • 举报
回复
邮箱?给你发?
xxrl 2003-10-17
  • 打赏
  • 举报
回复
很少有vbscript这方面的代码。
qdubit 2003-10-17
  • 打赏
  • 举报
回复
强烈关注!
blue_butterfly 2003-10-17
  • 打赏
  • 举报
回复
我需要vbscript的代码,再次感谢!
yangsm 2003-10-17
  • 打赏
  • 举报
回复
关注,顶!
angelheavens 2003-10-17
  • 打赏
  • 举报
回复
哪个应该是你要的(可以修改成自己需要的):
http://expert.csdn.net/Expert/topic/2365/2365754.xml?temp=.6899683

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧