请教一个javascript的问题!!
如下一段代码如何用javascript来实现?
<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>