?? upform.asp
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>圖片上傳</title>
<Script language="JavaScript">
<!--
function Check()
{
if (document.PicForm.Picture.value=="")
{
alert("請單擊[瀏覽...]按鈕,選擇您要上傳的jpg或gif文件!");
PicForm.Picture.focus;
return(false);
}
else
{
str=PicForm.Picture.value;
strs=str.toLowerCase();
lens=strs.length;
extname=strs.substring(lens-4,lens);
if(extname!=".jpg"&&extname!=".gif")
{
alert("請選擇jpg或gif文件!");
return(false);
}
}
if (document.TextForm.Text.value=="")
{
alert("請輸入圖片說明!");
TextForm.Text.focus;
return(false);
}
TextForm.submit(); //表單TextForm提交
PicForm.submit();
return true;
}
-->
</Script>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<form name="PicForm" enctype="multipart/form-data" action="SavePic.asp" method="post">
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" class="trh"><div align="center">圖片上傳</div></td>
</tr>
<tr>
<td width="276" height="33" class="trh"><p align="center">上傳圖片:</p>
</td>
<td width="699">
<input type="file" name="Picture" size="40" height="20"></td>
</tr>
</form>
<form name="TextForm" action="SaveText.asp" method="post">
<tr>
<td width="276" height="29" class="trh"><p align="center">圖片描述:</p>
</td>
<td width="699" bgcolor="#FFFFFF">
<input name="Text" type="text" size="40" height="20">
</font></td>
</tr>
<tr>
<td colspan="2"><p align="center"></form>
<input type="Button" value=" 上 傳 " onClick="JavaScript:Check();">
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -