Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.18 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>Register</title>
  5.         <link href='http://fonts.googleapis.com/css?family=Arvo:400,700|Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'>
  6.         <link rel="stylesheet" type="text/css" href="/css/style.css"/>
  7.         <script>
  8.             function _(id){
  9.                 return document.getElementById(id);
  10.             }
  11.             _("file_upload").onchange = function() {
  12.                 /*var formdata = new FormData();
  13.                 formdata.append("file1",file);
  14.                 var ajax = new XMLHttpRequest();*/
  15.                 alert("It works!");
  16.                 //alert(file.name + " | " + file.size + " | " file.type + " | ");
  17.             };
  18.            
  19.         </script>
  20.     </head>
  21.     <body>
  22.         <div id="container">
  23.             <div id="half1">
  24.                 <div id="upload">
  25.                    <div id="user">
  26.                        <img src="/img/1.png" alt="User image"/>
  27.                    </div>
  28.                   <img src="/img/plus.png" alt="Upload" />
  29.                   <input type="file" id="file_upload"/>
  30.                 </div>
  31.             </div>
  32.         </div>
  33.     </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement