test.jsp
来自「source code of upload pictures」· JSP 代码 · 共 26 行
JSP
26 行
<%@ page contentType="text/html;charset=ISO8859_1" %>
<html>
<head>
<title>upload Image</title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="jivejdon.css" type="text/css">
</head>
<script>
function MM_openBrWindow(theURL,features) {
window.open(theURL,"upload",features);
}
</script>
<%
String username="yefei";
%>
<body>
<input type="button" value="UploadPicture"
onClick="MM_openBrWindow('upload.jsp?pic=<%=username%>&maxwidth=120&maxheight=120','width=450,height=400,scrollbars=yes')" >
<input type="button" value="UploadFile"
onClick="MM_openBrWindow('uploadfile.jsp?pic=<%=username%>&maxwidth=120&maxheight=120','width=450,height=400,scrollbars=yes')" >
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?