12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@ page session="true" %>
- <%
- String filename = request.getParameter("filename");
- %>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Insert title here</title>
- <style>
- .a-upload {
- padding: 4px 50px;
- height: 20px;
- line-height: 20px;
- position: relative;
- cursor: pointer;
- color: #000;
- background: #fafafa;
- border: 1px solid #ddd;
- border-radius: 4px;
- overflow: hidden;
- display: inline-block;
- *display: inline;
- *zoom: 1;
- margin-left:20px;
- }
- .a-upload input {
- position: absolute;
- font-size: 16px;
- right: 0;
- top: 0;
- opacity: 0;
- filter: alpha(opacity=0);
- cursor: pointer
- }
- .a-upload:hover {
- color: #444;
- background: #eee;
- border-color: #ccc;
- text-decoration: none
- }
- .submit{
- width:100px;
- height:30px;
- font-size: 18px;
- border: 1px solid #ddd;
- border-radius: 4px;
- background: #fafafa;
- margin-top:20px;
- color:#000;
- float:right;
- position:relative;
- right:40px;
- cursor: pointer
- }
- </style>
- <script type="text/javascript">
- function setpic2(){
- var inputObj=document.getElementById('myFile2');
- inputObj.click();
- inputObj.value ;
- }
- function addpic2(){
- alert(document.getElementById('myFile2').value);
- }
- function uploadpic2(){
- var form = document.getElementById('uploadForm2');
- form.submit();
- }
- </script>
- </head>
- <body style="background:#002c59;height:120px;width:200px;">
- <div style="height:100%;width:100%">
- <form id="uploadForm2" action="upload2.jsp" method="post" enctype="multipart/form-data" class="test_form">
- <!-- <a id="myclick" href="javascript:;" class="a-upload"> -->
- <input type="file" id="myFile2" name="myFile" value="" style="visibility:hidden;" onchange="uploadpic2()">
- <!-- </a>
- <input type="submit" name="submit" class="submit"> -->
- </form>
- </div>
- </body>
- </html>
|