?? demo3.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>XUploadFiles 功能演示</title>
<script language="javascript">
function check_reply(oUpload, oForm)
{
if(!oUpload.isready ())
{
alert("您還沒有選擇需要上傳的文件。");
return false;
}
oUpload.setpath (oForm.subpath.value); // 設置上傳文件的路徑
if(oUpload.uploadfile()=="") // 上傳所選擇的文件
return false;
}
</script>
</head>
<body bgcolor="#CCEEFF">
<div>
<object id="uploadid" classid="clsid:18B9E4BF-F21F-46B9-AD50-5CA62145426A" height="20" width="120" codebase="http://www.blue999.com/xuploadfiles/activex/xuploadfiles.cab">
<param name="Action" value="xu_normal.php">
<param name="Bind" value="filelist">
</object>
</div>
<script language="javascript" src="xuploadfiles.js"></script>
<table width="100%" border="1">
<tr>
<td align="center"><span style="color:#770000; font-size:26px">演示3:Form 表單信息處理演示</span>
</tr>
<tr>
<td><form method="post" action="demo3.php" onSubmit="return check_reply(uploadid,this);">
<table align="center">
<tr>
<td><br>
<p>文件說明:
<input name="title" type="text" value="Form 表單信息處理">
</p>
<p>上傳位置:
<select name="subpath">
<option selected value="myfiles">myfiles</option>
<option value="images">images</option>
<option value="document">document</option>
<option value="excel">excel</option>
</select>
</p>
<p>上傳文件:
<input type="button" value="選擇一個文件" onClick="uploadid.selectfile();">
<input type="button" value="選擇多個文件" onClick="uploadid.selectfiles();">
<br>
<textarea name="filelist" readonly cols="70" rows="8" wrap="off"></textarea>
</p>
<p align="center">
<input type="submit" value="提交">
<input type="reset" value="重置" onClick="uploadid.reset();">
<input type="button" value="返回" onClick="javascript:history.go(-1);">
</p></td>
</tr>
</table>
</form></td>
</tr>
</table>
<p align="center">軟件主頁:<a href="http://www.blue999.com/xuploadfiles/">www.blue999.com</a> ,<a href="http://www.blue999.com/xuploadfiles/guest/guest.asp">問題反饋</a></p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -