在线等待..JavaScript的问题

来源:百度知道 编辑:UC知道 时间:2024/05/18 11:08:10
<html>
<head>
<title>上传文件</title>
<script language="javascript">
function sets()
{
var d;
d="";
for(var i=1;i<=s.value;i++)
{
d=d+"文件"+i+":<input type=file name=file"+i+" /><br/>"
}
x.innerHTML=d;
ss.value=i;
}

</script>
<LINK href="../Inc/xkon.Css" type=text/css rel=stylesheet>
</head>
<body>

<br/>
<font color="#ff0000">注意:上传中或上传后请勿刷新页面</font>
<form method="post" action="ShangChuan.Asp?c=i1" enctype="multipart/form-data">
<table width=100% >
<tr>
<th colspan=2>上传文件</th>
</tr>
<tr>
<td class=t1>设置数量:</td>
<td class=t2><input type="text" id="s" val

<script language="javascript">
function sets()
{
var d = "";
var s = document.getElementById("s"); //初始化 s
for(var i=1;i<=s.value;i++)
{
d=d+"文件"+i+":<input type=file name=file"+i+" /><br/>"
}
x.innerHTML=d;
//ss.value=i; //PS: 好像没有id为ss的东西哦..
//改成 document.getElementById("ss").value=i;
}

</script>