28,406
社区成员
发帖
与我相关
我的任务
分享
<script type="text/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:200;"> <br><br>\;
window.imgid.innerHTML=str1;
}
</script>
<%@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" size="2">图片说明\+j+\: </font> <input name="txt\+j+\" type="text" class="xian" style="height:20;width:200;"> <br> <br>\';
window.imgid.innerHTML=str1;
}
</script>
</head>
<body >
<center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25" colspan="2" align="center"><font color="#FF0000" size="2"><%=session("errmess11")%></font></td>
</tr>
<tr>
<td width="67%" height="25" align="right" ><font color="#003333" size="2">请输入上传图片的张数:</font>
</td>
<td width="33%" height="25" align="left" > <form method="post" action="" name="form11" id="form11">
<input name="imgcou" id="imgcou" type="text" style="height:20;width:20;" class="xian">
<input name="tsd" type="button" value="设定" style="height:20;width:50;" class="xian" onClick="setid();">
</form></td>
</tr>
<form name="SCM" action="khimg.asp" method="post" enctype="multipart/form-data">
<tr>
<td colspan="2" align="center" id="imgid"><br> <font color="#003333" size="2" id="shuang">图片1:</font>
<input name="file1" type="file" class="xian" style="height:20;width:221;">
<br> <font color="#003333" size="2">图片说明1:</font> <input name="txt1" type="text" class="xian" style="height:20;width:200;">
<br></td>
</tr>
<tr>
<td align="center" height="30" ></td>
<td align="left" ><input type="submit" name="FMDJ" value="提交" style="height:20;width:40;" class="xian">
<input type="reset" name="Submit2" value="重设" style="height:20;width:40;" class="xian"></td>
</tr>
</form>
</table>
</center>
</body>
</html>