"Browse for new file"
Bootstrap 3.0.0 Snippet by VishwanathKD

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
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container-fluid">
<div style="min-height:60px;padding:12px 0">
<div id="contentWrapper">
<script> window.onload = function() { ZM.init() } </script>
<div class="row">
<div class="col-sm-7 col-xs-12">
<form role="form" id="fileForm" target="uploadFrame" method="post" enctype="multipart/form-data" action="loadImage.php?task=file" onsubmit="return ZM.loadImage(this)">
<div class="input-group input-group-sm">
<span class="input-group-btn">
<span class="btn btn-gray btn-file">
Browse… <input type="file" name="file" accept="image/*">
</span>
</span>
<input type="text" class="form-control" placeholder="Choose file" readonly>
<span class="input-group-btn">
<button class="btn btn-gray" type="submit">Ok</button>
</span>
</div>
<br />
<br />
</form>
</div>
</div>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
.colorBox>div
{
width:30px;
height:30px;
background:url(/pics/color.png)
}
#contentWrapper{
background:#fff;
padding:10px 10px 0;
box-shadow:3px 2px 5px rgba(0,0,0,.3);
margin:20px 0}
.btn-gray{
background-color:#ccc;
background-image:-moz-linear-gradient(#f4f4f4,#bcbcbc);
background-image:-webkit-linear-gradient(#f4f4f4,#bcbcbc);
background-image:-ms-linear-gradient(#f4f4f4,#bcbcbc);
border-color:#aaa;
color:#000}
.btn-file{
position:relative
}
.btn-file input[type=file]{
position:absolute;
top:0;
right:0;
min-width:100%;
min-height:100%;
font-size:999px;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
var fn = function(e) {
if (!/zmore/.test(e.target.className)) { $('#dmore').hide(); }
}
document.addEventListener('click', fn);
document.addEventListener('touchstart', fn);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: