?? upload.jsp
字號:
<%@ page contentType="text/html;charset=gb2312" %>
<html>
<head>
<title>圖片上傳</title>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<LINK href="../images/mainstylectrl.css" type=text/css rel=stylesheet>
</head>
<body text="#000000" leftmargin="0" topmargin="0" bgcolor="#ffffff" class="Utu">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#ffffff">
<tr> <form name="form9" method="post" action="uploading.jsp" enctype="multipart/form-data" onSubmit="return check1();">
<td valign="middle">
<input type="file" name="text1" size="30" class=buttonlinear>
<input type="submit" name="submit" value="上傳" class="pushbutton"></td><td alig=right>
允許上傳[ 圖片 txt word excel rar zip ]文件
</td>
</form>
</tr>
</table>
</body>
</html>
<script language=javascript>
<!--
function check1(){
ff=document.form9
if (ff.text1.value==""){
window.alert("請選擇文件!")
ff.text1.focus()
return false
}
if (!((ff.text1.value.indexOf('gif')>=0) || (ff.text1.value.indexOf('jpg')>=0) || (ff.text1.value.indexOf('bmp')>=0) || (ff.text1.value.indexOf('jpeg')>=0) || (ff.text1.value.indexOf('png')>=0) || (ff.text1.value.indexOf('txt')>=0) || (ff.text1.value.indexOf('doc')>=0) || (ff.text1.value.indexOf('rtf')>=0) || (ff.text1.value.indexOf('xls')>=0) || (ff.text1.value.indexOf('rar')>=0) || (ff.text1.value.indexOf('zip')>=0) ))
{
alert("允許上傳[ 圖片 txt word excel rar zip ]文件!");
ff.text1.value=="";
return false;
}
}
//-->
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -