asp input框问题

来源:百度知道 编辑:UC知道 时间:2024/05/29 09:53:59
输入数量后,为什么input text 框的数量不增加??

按道理 我输入3,应该出现3个file框和文本框啊?
代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图片上传</title>
<script language="JavaScript">
function setid()
{ if(!window.form11.imgcou.value)
window.form11.imgcou.value=1;
aa=window.form11.imgcou.value;
if (aa>100) file://限制为100个文件
{aa=100;
window.form11.imgcou.value=100;
}
str1=\\
for(j=1;j<=aa;j++)
str1+=\<br> <font color="#003333" size="2" id="shuang">图片\+j+\:</font><input name="file\+j+\ " type="file" class="xian" style="height:20;width:221;"><br> <font color="#003333"

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图片上传</title>
<script language="JavaScript">
function setid()
{ if(!window.form11.imgcou.value)
window.form11.imgcou.value=1;
aa=window.form11.imgcou.value;
if (aa>100) //file://限制为100个文件
{aa=100;
window.form11.imgcou.value=100;
}
str1='';
for(j=1;j<=aa;j++)
str1+='<br> <font color="#003333" size="2" id="shuang">图片\+j+\:</font><input name="file\+j+\ " type="file" class="xian" style="height:20;width:221;"><br> <font color="#003333" size="2">图片说明'+j+':</font> <input name="txt'+j+'" type="text" class="xian" style="height:20;width