javascript 的应用问题?(老大们帮忙啊,急)

juwairei 2004-05-08 11:12:52
用javascript如何实现下面vb代码实现的功能?
<script language="vbscript">

dim lcountmx_fj
lcountmx_fj = 0
function dodelfj(l)
tabfj.deleteRow document.getElementById("trfj" & l).rowindex
end function
function baddfj()
lcountmx_fj = lcountmx_fj+1
dim oRow,oCell,ii
dim sss
set oRow=tabfj.insertRow
orow.id="trfj" & lcountmx_fj
if lcountmx mod(2)=0 then
orow.classname="listrow1"
else
orow.classname="listrow1_1"
end if
'附件说明
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="10"
sss = "<nobr>附件说明</nobr>"
ocell.innerhtml= sss
'附件说明内容
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="50%"
sss="<input type=text class=input id=fjbt" & lcountmx_fj & " name=fjbt" & lcountmx_fj & " value="""" style='width:100%'>"
ocell.innerhtml= sss
'附件上传
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="200"
sss="<input type=file class=input id=fjwj" & lcountmx_fj & " name=fjwj" & lcountmx_fj & " value="""" style='width:100%'>"
ocell.innerhtml= sss
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.innerhtml="<img src='../../../image/delete.gif' alt='删除' onclick='vbscript:dodelfj(" & lcountmx_fj &")' style='cursor:hand'>"
end function
</script>
...全文
63 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
guishuanglin 2004-06-08
  • 打赏
  • 举报
回复
我也是从没真正学过VB。。。。。。
只学vc,java,C#,delphi
Zazu 2004-05-09
  • 打赏
  • 举报
回复

帮忙顶!

yaomengqiushui 2004-05-09
  • 打赏
  • 举报
回复
GZ
CoolRay 2004-05-09
  • 打赏
  • 举报
回复
去web/javascript版问阿
zengt1978 2004-05-09
  • 打赏
  • 举报
回复
将dim换成var
连接符& 换成 +
注意大小写innerhtml 换成 innerHTML
filippo1980 2004-05-09
  • 打赏
  • 举报
回复
不懂,友情up
lboss_li 2004-05-08
  • 打赏
  • 举报
回复
vb没怎么研究过
帮你up!
yangzuyu12 2004-05-08
  • 打赏
  • 举报
回复
呵呵,这个有难度,两个都要懂

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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