复选框:
<input type="checkbox" id="file1" name="file1" value="FileName1">
<input type="checkbox" id="file2" name="file2" value="FileName2">
<input type="checkbox" id="file3" name="file3" value="FileName3">
<input type="checkbox" id="file4" name="file4" value="FileName4">
要获取选中的复选框数值可用:
if file1.checked then MsgBox file1.value
if file2.checked then MsgBox file2.value
if file3.checked then MsgBox file3.value
if file4.checked then MsgBox file4.value
获取
但是如果数量大,if脚本就要跟着一样的数量(复选框是根据文件多少自动调整的)
试过
for i = 1 to Num
if file(i).checked then MsgBox file(i).value)
next
方式无效,在网上没找到何时的方法解决,询问有没有VBS方面的高手能解决?
Last edited by zh159 on 2007-3-24 at 04:32 PM ]