-
Notifications
You must be signed in to change notification settings - Fork 19
/
example.html
41 lines (36 loc) · 964 Bytes
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.uploadButton {
position:relative;
overflow:hidden;
height:128px;
cursor:pointer;
width:128px;
background:url(http://cdn4.iconfinder.com/data/icons/dellios_system_icons/png_128/arrow-up.png);
opacity:0.5;
}
.uploadButton.hover {
opacity:1;
}
/* Hide the dotted active element border in some browsers */
* { _noFocusLine: expression(this.hideFocus=true); }
::-moz-focus-inner { border:0; }
:focus { outline:none; }
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.fileinput.js"></script>
<script type="text/javascript">
$(function() {
$('input[type=file]').fileinput($('.uploadButton').remove());
});
</script>
</head>
<body>
<div style="padding:100px;">
<input type="file" />
<div class="uploadButton"></div>
</div>
</body>
</html>