-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.html
More file actions
executable file
·338 lines (272 loc) · 10.6 KB
/
gallery.html
File metadata and controls
executable file
·338 lines (272 loc) · 10.6 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" >
<title> 갤러리 서울 | 서울특별시 웹사이트</title>
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<link rel="stylesheet" type="text/css" href="css/base.css"/>
<link rel="stylesheet" type="text/css" href="css/layout.css"/>
<link rel="stylesheet" type="text/css" href="css/header.css"/>
<link rel="stylesheet" type="text/css" href="css/gallery.css"/>
<link rel="stylesheet" type="text/css" href="css/footer.css"/>
<link rel="stylesheet" type="text/css" href="css/mediaGallery.css"/>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie7.css"/>
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="css/ie8.css"/>
<![endif]-->
<!--[if gt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie89.css"/>
<![endif]-->
<!-- html5shiv 플로그인 껴넣기-->
<!--[if lt IE 9]>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js">
</script>
<![endif]-->
<style>
/* ie 10 과 ie edge 크로스 브라우징 핵*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#header .headerBot nav .gnb LI.allMenu {
padding-top: 20px;
}
#header .headerBot nav .gnb LI.search {
padding-top: 20px;
}
}
/*firefox only hack*/
@-moz-document url-prefix() {
}
</style>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/scrollTop.js"></script>
<script src="js/mainGnb.js"></script>
<script src="js/jquery.color.js"></script>
<script>
$(document).ready(function(){
$('.boxgrid').hover(function(){
$(".boxcaption", this).stop().animate({top:'0%'},{queue:false,duration:360});
}, function() {
$(".boxcaption", this).stop().animate({top:'100%'},{queue:false,duration:360});
});
});
$(document).ready(function(){
// 1 .grayLayer와 overLayer안보이게 숨기기
$(".grayLayer, .overLayer, .closePhoto").hide();
$(".boxcaption a").click(function(){
// 3 [대상]작은 그림을 [이벤트]클릭하면 [이벤트 핸들러 1] .grayLayer와 .overLayer 보인다
$(".grayLayer, .overLayer, .closePhoto").fadeIn();
// [이벤트 핸들러 2] overLayer 안에는 큰그림이 들어가 있고 페이지 정중앙에 배치하게 만든다
// 대상: overLayer 안에는
// 효과1: 큰그림이 들어가 있고 => html('<img src="'+ $(this).attr("href") +'" alt=""/>')
// 효과2: 페이지 정중앙에 배치하게 만든다 => css({" ":" "," ":" "})
// =>css({"marginLeft":"-"+($(".overLayer").width()/2)+"px",
// "marginTop":"-"+($(".overLayer").height()/2)+"px"})
$(".overLayer").html('<img src="'+ $(this).attr("href")+'" alt="">')
// .overLayer안에 .html을 이용해서<img>가 새로생김
// .animate({"width":"70%","height":"70%","opacity":"1"}, "slow","swing");
//.css({"marginLeft":"-"+($(".overLayer").width()/2)+"px","top":"200px"})
// "marginTop":"-"+($(".overLayer").height()/2)+"px"});
.css({"marginLeft":"-"+($(".overLayer").width()/2)+"px",
"top":"200px"});
return false;
});
// 2 .grayLayer와 overLayer를 클릭하면 .grayLayer와 overLayer 안보이게 숨기기
$(".grayLayer, .overLayer, .closePhoto").click(function(){
$(".grayLayer, .overLayer, .closePhoto").fadeOut();
});
});
$(window).resize( function(){ // resizing 할때마다
$(".overLayer").css({"marginLeft":"-"+($(".overLayer").width()/2)+"px",
"top":"200px"});
});
</script>
</head>
<body><strong><strong></strong></strong>
<!--바로가기 메뉴 => skip navigation, h태그 필요없음 , base.css에 있음-->
<ul id="skipnav">
<li><a href="#gnba">주메뉴 바로가기</a></li><!--gnb의 첫 번째 a에 id gnba 넣어줌-->
<li><a href="#maina">본문내용 바로가기</a></li>
</ul>
<!-- skip nav END -->
<div id="wrapper">
<!-- ############## header.php 넣기-->
<?php include "common/header.php"; ?>
<div id="content">
<h2>주요 컨텐츠</h2>
<div class="breadInner">
<ul class="breadcrumb">
<li class="gohome"><a href="#" title="홈 바로가기"><img src="image/icon_home.png" alt="홈 아이콘"/></a></li>
<li><a href="#" title="서울뉴스 바로가기" >서울 뉴스</a></li>
<li>
<a href="#" title="새소식 바로가기">
새소식
<span class="breadDown"><img src="image/icon_arrowDown.png" alt="down arrow"/></span>
</a>
</li>
</ul>
</div>
<section class="galleryInner">
<h3>갤러리 서울</h3>
<ul class="subnav">
<li class="subnavL"><a href="#" title="이전 페이지">previous</a></li>
<li class="subnavR"><a href="#" title="다음 페이지">next</a></li>
</ul>
<div class="galleryList">
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p1.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p1_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p2.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p2_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p3.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p3_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p4.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p4_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p5.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p5_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p6.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p6_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p7.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p7_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p8.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p8_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p9.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p9_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p10.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p10_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p11.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p11_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
<div class="boxgrid caption">
<a href="#" title="제목보기"><img src="image/p12.jpg" alt="서울 사람들"/></a>
<dl class="boxcaption">
<a href="image/p12_b.jpg" title="크게보기">
<dt>한강몽땅 사진 공모전</dt>
<dd>노을이 있는 콘서트_오권열(대상)<br/>
2015. 03. 30
</dd>
<dd><img src="image/plus.png" alt="크게보기"/></dd>
</a>
</dl>
</div>
</div>
<div class="grayLayer"></div>
<div class="overLayer">
</div>
<div class="closePhoto"><img src="image/closeVideo.png" alt="닫기"/></div>
</section><!-- galleryInner END-->
</div><!--content END-->
<!-- ############## footer.php 넣기-->
<?php include "common/footer.php"; ?>
</div> <!--wrapper END-->
</body>
</html>