-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·525 lines (457 loc) · 26.9 KB
/
index.php
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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
<!DOCTYPE html>
<!-- saved from url=(0046)http://v3.bootcss.com/examples/carousel/#about -->
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="resource/img/ico.jpg">
<title>复旦大学海关史与海关文献国际研究中心欢迎您</title>
<!-- Bootstrap core CSS -->
<link href="resource/css/style.css" rel="stylesheet">
<link href="resource/css/bootstrap.css" rel="stylesheet">
<link href="resource/css/base.css" rel="stylesheet">
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="resource/js/ie-emulation-modes-warning.js"></script>
<!--[if lt IE 9]>
<script src="resource/js/respond.js"></script>
<script src="resource/js/html5shiv.js"></script>
<script type="text/javascript" src="./js/PIE.js"></script>
<![endif]-->
<link href="resource/css/carousel.css" rel="stylesheet">
</script>
</head>
<!-- NAVBAR
================================================== -->
<body style="font-family:微软雅黑 !important;background-color:#f8f8f8">
<!-- header-->
<div class="container">
<?php include("header.php") ?>
</div>
<div id="myCarousel" class="carousel slide" data-ride="carousel" style="margin-bottom:-200px" >
<!-- Indicators -->
<div class="carousel-inner" role="listbox" >
<div class="item active">
<img id="slider" class="first-slide" alt="First slide">
</div>
</div>
</div><!-- /.carousel -->
<div class="container marketing" >
<div class="row">
<div class="col-md-4 panelCol">
<div class="panel panel-default panelheadingLeft" style="border-color:#f8f8f8">
<div class=" panel-heading pannelOpactiy">
<!--<i class="fa fa-link"></i>-->
<a href="notifications.php?type=2"><span class="mytitle"><b> 最新通知 </b>
<span style="color:#00f">></span></span></a>
</div>
<!-- -->
<div class="panel-body standard-vertical-bordered" style="padding: 0px;border-top-width: 0px;border-bottom-width: 0px;">
<ul class="events-listing-content sort-destination isotope-events" style="padding-left:0px" data-sort-id="events">
<li class="event-list-item dashed-bottom-bordered" style="width: 95%;margin:3px 9px 0px 9px;padding-top:10px;height:110px;">
<div style="margin-left: 10px;">
<div class="event-list-item-date" style="width: 120px;height: 90px;overflow: hidden;margin-right: 15px;">
<span class="event-date">
<span class="event-day">22</span>
<span class="event-month">四   月</span>
</span>
</div>
<div class="event-list-item-info myevent-list-item" style="padding:1px 0 5px 5px;">
<div class="lined-info lined-title event-title" style="position: relative;padding-right: 0;max-height: 40px;overflow: hidden">
<h4 style="margin-top:0px" >
<a class="hover-yellow" href="newsDetail.php?id=32&type=3">讲座: 清末民初的慈善活动与扶乩团体--以上海济生会为例</a>
</h4>
</div>
<div class="event-list-item-dm" style="margin-top:0px">
<div class="lined-info">
<span class="meta-data"><span class="glyphicon glyphicon-time"></span> <span style="event-time">15:30 </span></span>
</div>
<div class="lined-info event-location" style="margin-top:-3px">
<span class="meta-data"><span class="glyphicon glyphicon-map-marker"></span> <span style="event-location-address">光华西主楼2001</span></span>
</div>
</div>
</div>
</div>
</li>
<hr class="featurette-divider" style="margin: 0px 0px 0px 0px">
<li class="event-list-item dashed-bottom-bordered" style="width: 95%;margin:3px 9px 0px 9px;padding-top:10px;height:110px;">
<div style="margin-left: 10px;">
<div class="event-list-item-date" style="width: 120px;height: 90px;overflow: hidden;margin-right: 15px;">
<span class="event-date">
<span class="event-day">08</span>
<span class="event-month">四   月</span>
</span>
</div>
<div class="event-list-item-info myevent-list-item" style="padding:5px 0 5px 5px;">
<div class="lined-info lined-title event-title" style="position: relative;padding-right: 0;max-height: 40px;overflow: hidden">
<h4 style="margin-top:0px" >
<a class="hover-yellow" href="newsDetail.php?id=33&type=3">讲座: 中国的城市转型:从地域社会向移民社会转变</a>
</h4>
</div>
<div class="event-list-item-dm" style="margin-top:0px">
<div class="lined-info">
<span class="meta-data"><span class="glyphicon glyphicon-time"></span> <span style="event-time">15:00 </span></span>
</div>
<div class="lined-info event-location" style="margin-top:-3px">
<span class="meta-data"><span class="glyphicon glyphicon-map-marker"></span> <span style="event-location-address">光华西主楼史地所2201</span></span>
</div>
</div>
</div>
</div>
</li>
<hr class="featurette-divider" style="margin: 0px 0px 0px 0px">
<li class="event-list-item dashed-bottom-bordered" style="width: 95%;margin:3px 9px 0px 9px;padding-top:10px;height:110px;">
<div style="margin-left: 10px;">
<div class="event-list-item-date" style="width: 120px;height: 90px;overflow: hidden;margin-right: 15px;">
<span class="event-date">
<span class="event-day">27</span>
<span class="event-month">二   月</span>
</span>
</div>
<div class="event-list-item-info myevent-list-item" style="padding:5px 0 5px 5px;">
<div class="lined-info lined-title event-title" style="position: relative;padding-right: 0;max-height: 40px;overflow: hidden">
<h4 style="margin-top:0px" >
<a class="hover-yellow" href="newsDetail.php?id=35&type=2">会议: 海关文献与近代中国学术研讨会</a>
</h4>
</div>
<div class="event-list-item-dm" style="margin-top:0px">
<div class="lined-info">
<span class="meta-data"><span class="glyphicon glyphicon-time"></span> <span style="event-time"> 08:30</span></span>
</div>
<div class="lined-info event-location" style="margin-top:-3px">
<span class="meta-data"><span class="glyphicon glyphicon-map-marker"></span> <span style="event-location-address">复旦大学逸夫科技楼</span></span>
</div>
</div>
</div>
</div>
</li>
</ul>
<!--<div class="panel-footer" style="margin-top: -10px;">-->
<!--<span>-->
<!--<a class="hover-blue" style="padding-left: 5px;font-weight: bold;"-->
<!--href="http://news.fudan.edu.cn/calendar/">更多活动-->
<!--<img src="images/Fudan_home_03.png" style="position: relative;top: -1px;" /></a>-->
<!--</span>-->
<!--</div>-->
</div>
<!-- -->
</div>
<div class="panel panel-default panelheading" style="border-color:#f8f8f8;background-color:#f8f8f8">
<div class="panelheading panel-heading pannelOpactiy" >
<!--<i class="fa fa-link"></i>-->
<a href="#"><span class="mytitle" ><b>海关数据</b>
<span style="color:#00f">></span></span></a>
<div class="pull-right" style="">
</div>
<div class="clearfix"></div>
</div>
<div class="row" style="margin:15px 0px 0px 2px" id="fudanNews">
<div class="col-xs-5 ">
<a href="#" class="thumbnail" style="border:none" title="照片资料">
<img src="resource/img/picture.png" style="height:80px;width:80px" alt="...">
</a>
</div>
<div class="col-xs-5">
<a href="#" class="thumbnail" style="border:none" title="统计数据">
<img src="resource/img/chart.png" style="height:80px;width:80px" alt="...">
</a>
</div>
<div class="col-xs-5">
<a href="#" class="thumbnail" style="border:none" title="海关文献目录">
<img src="resource/img/book.png" style="height:80px;width:80px" alt="...">
</a>
</div>
<div class="col-xs-5">
<a href="#" class="thumbnail" style="border:none" title="历史地图和地理信息系统">
<img src="resource/img/map2.png" style="height:80px;width:80px" alt="...">
</a>
</div>
</div>
</div>
</div><!-- /.col-sm-4 -->
<div class="col-md-5 panelCol">
<div class="panel panel-default panelheading" style="border-color:#f8f8f8;background-color:#f8f8f8">
<div class="panelheading panel-heading pannelOpactiy" >
<!--<i class="fa fa-link"></i>-->
<a href="news.php"><span class="mytitle" ><b>综合新闻 </b>
<span style="color:#00f">></span></span></a>
<div class="pull-right" style="">
</div>
<div class="clearfix"></div>
</div>
<div class="row" style="margin:15px 0px 0px 2px" id="fudanNews">
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="newsDetail.php?id=21">中国海关史与海关文献国际研究中心成立</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2">4月18日</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="newsDetail.php?id=22">“海关文献与近代中国”国际学术研讨会在复旦..</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2">4月18日</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="newsDetail.php?id=28">复旦成立海关史研究中心:旧海关文献为何..</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2">4月18日</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="newsDetail.php?id=29">新一批哈佛大学图书馆馆藏未刊中国旧海关..</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2">4月1日</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="newsDetail.php?id=30">樊如森新著《华北与蒙古高原近代经济地理》..</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2">3月18日</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="newsDetail.php?id=31">“中国近代经济地理格局形成的机制与表现”..</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2">2月12日</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="newsDetail.php?id=37">九卷本《中国近代经济地理》第一卷出版</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2">1月18日</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="newsDetail.php?id=38">全国青年历史地理学者论坛在本中心召开</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2">1月18日</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:24px;margin-left:15px;" class="col-xs-9 add-ellipsis">
<a style="color:#555" href="http://news.fudan.edu.cn/2016/0318/41089.html"></a>
</div>
<div style="font-size:10px;padding:0px;margin-left:16px;" class="col-xs-2"></div>
</div>
</div>
<div class="panel panel-default panelheading" style="border-color:#f8f8f8;background-color:#f8f8f8;margin-top:21px">
<div class="panelheading panel-heading pannelOpactiy" >
<!--<i class="fa fa-link"></i>-->
<a href="http://yarwen.com/discuss/forum.php"><span class="mytitle" ><b>讨论区</b>
<span style="color:#00f">></span></span></a>
<div class="pull-right" style="">
</div>
<div class="clearfix"></div>
</div>
<div class="row" style="margin:15px 0px 0px 2px" id="fudanNews">
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-10 add-ellipsis">
<a style="color:#555" href="http://yarwen.com/fudan/discuss/forum.php?mod=viewthread&tid=2&extra=page%3D1">讨论: 海关外籍洋员著述列举</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:1px;" class="col-xs-1">
<a style="color:#555" href="#"> <span class="badge" style="background-color:#cc3333;font-size:8px">3</span></a>
</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-10 add-ellipsis">
<a style="color:#555" href="http://yarwen.com/fudan/discuss/forum.php?mod=viewthread&tid=1&extra=page%3D1">话题: 统计资料使用时需要注意统计单位转换</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:1px;" class="col-xs-1">
<a style="color:#555" href="#"> <span class="badge" style="background-color:#cc3333;font-size:8px">31</span></a>
</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-10 add-ellipsis">
<a style="color:#555" href="http://yarwen.com/fudan/discuss/forum.php?mod=viewthread&tid=4&extra=page%3D1">讨论:欢迎大家分享一些数据分析与展示的工具</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:1px;" class="col-xs-1">
<a style="color:#555" href="#"> <span class="badge" style="background-color:#cc3333;font-size:8px">13</span></a>
</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-10 add-ellipsis">
<a style="color:#555" href="http://yarwen.com/fudan/discuss/forum.php?mod=viewthread&tid=3&extra=page%3D1">讨论:第二代海关史研究的主要内容是什么?</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:1px;" class="col-xs-1">
<a style="color:#555" href="#"> <span class="badge" style="background-color:#cc3333;font-size:8px">99</span></a>
</div>
<div style="font-size:14px;color:#444;padding:0px;margin-bottom:15px;margin-left:15px;" class="col-xs-10 add-ellipsis">
<a style="color:#555" href="http://yarwen.com/fudan/discuss/forum.php?mod=viewthread&tid=5&extra=page%3D1">旧海关出版物在世界范围内的收藏情况</a>
</div>
<div style="font-size:10px;padding:0px;margin-left:1px;" class="col-xs-1">
<a style="color:#555" href="#"> <span class="badge" style="background-color:#cc3333;font-size:8px">99</span></a>
</div>
</div>
</div>
</div><!-- /.col-sm-4 -->
<div class="col-md-3 panelCol">
<div class="panel panel-default panelheadingRight" style="border-color:#f8f8f8;background-color:#f8f8f8">
<div class=" panel-heading pannelOpactiy" >
<!--<i class="fa fa-link"></i>-->
<a href="paper.php"><span class="mytitle" ><b>学术文库 </b>
<span style="color:#00f">></span></span></a>
<div class="pull-right" style="">
</div>
<div class="clearfix"></div>
</div>
<div class="row" style="margin-left:2px;margin-top:18px">
<div class="col-sm-6" style="padding:0px 0px 0px 20px">
<a href="paperDetail.php?id=0&type=2"><img src="resource/img/paper/paper1.jpg" alt="..." style="height:155px; width:125px" class="img-thumbnail"> </a>
</div>
<div class="col-sm-5" style="padding:60px 0px 0px 0px">
<a href="#">
<h3 style="margin-top:60px;margin-left:5px">吴松弟 <span style="font-size:14px">等</span> </h3>
</a>
</div>
</div>
<div class="row" style="margin-left:2px;margin-top:10px">
<div class="col-sm-12" >
<a href="paperDetail.php?id=0&type=2"><span>《中国百年经济拼图:港口城市及其腹地与中国现代化》</span></a>
</div>
</div>
<div class="row" style="margin-left:2px;margin-top:10px">
</div>
<!-- <hr style="margin-left:40px;margin-right:40px;height:2px;border:none;border-top:1px dashed" /> -->
<div class="row" style="margin-left:2px;margin-top:10px">
<div class="col-sm-6" style="padding:0px 0px 0px 20px">
<a href="paperDetail.php?id=3&type=2"><img src="resource/img/paper/paper4.jpg" alt="..." style="height:155px; width:130px" class="img-thumbnail"> </a>
</div>
<div class="col-sm-5" style="padding:60px 0px 0px 0px">
<a href="#">
<h3 style="margin-top:60px;margin-left:5px">吴松弟</h3>
</a>
</div>
</div>
<div class="row" style="margin-left:2px;margin-top:10px">
<div class="col-sm-12" >
<a href="paperDetail.php?id=3&type=2"><span>《中国古代都城》</span></a>
</div>
</div>
<br>
<!--<div class="list-group">
<img src="img/book1.png" alt="..." style="height:146px; widht:180px" class="img-thumbnail">
<br>
<img src="img/book2.png" alt="..." style="height:146px; widht:180px" class="img-thumbnail">
<br>
<img src="img/book3.png" alt="..." style="height:146px; widht:180px" class="img-thumbnail">
</div>-->
</div>
</div>
</div><!-- /.col-sm-4 -->
</div>
<div class="clearfix"></div>
<br><br>
<div class="container marketing">
<!-- Three columns of text below the carousel -->
<div class="row">
<div class="col-md-4" style="text-align:center">
<a href="people.php">
<img class="img-circle" src="resource/img/vip.png" alt="Generic placeholder image" width="140" height="140">
</a>
<h2>中心成员</h2>
<p>参与讨论并获得研究资料和数据 </p>
<p><a class="btn btn-default" href="" role="button" data-toggle="modal" data-target="#myModal"> 登录注册 »</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-md-4" style="text-align:center">
<a href="map.php" target="_blank">
<img class="img-circle" src="resource/img/map.png" alt="Generic placeholder image" width="140" height="140">
</a>
<h2>中心地址</h2>
<p>中心位于杨浦区邯郸路220号</p>
<p><a class="btn btn-default" href="map.php" target="_blank" role="button">地图位置 »</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-md-4" style="text-align:center">
<a href="aboutus.php">
<img class="img-circle" src="resource/img/cooperation.png" alt="Generic placeholder image" width="140" height="140">
</a>
<h2>联系·合作</h2>
<p>参与中心的合作项目,共同发展.</p>
<p><a class="btn btn-default" href="aboutus.php" role="button">参与合作 »</a></p>
</div><!-- /.col-lg-4 -->
</div><!-- /.row -->
<!-- START THE FEATURETTES -->
<br><br>
</div>
<!-- FOOTER -->
<?php
include("footer.php");
?>
<!-- 模态框(Modal) -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style="width:400px;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close"
data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title" id="myModalLabel">
登录
</h4>
</div>
<div class="modal-body">
<div id="login" >
<form class="bs-example bs-example-form" method="post" action="discuss/discuz_login_api.php" target="_blank" data-example-id="input-group-sizing">
<input type="text" name="username" class="form-control" placeholder="用户名" aria-describedby="sizing-addon1">
<br>
<input type="password" name="password" class="form-control" placeholder="密码" aria-describedby="sizing-addon2">
<br>
<div class="input-group">
 
<input type="checkbox" aria-label="...">
<span>  下次自动登录</span>
<button type="submit" class="btn btn-md btn-primary" type="button" style="margin-left:55px">登录</button>  
<a style="cursor:pointer;" onclick="changeToRegistry()">没有账号,请先注册</a>
</div>
</form>
</div>
<div id="registry" style="display:none">
<form class="bs-example bs-example-form" method="post" action="discuss/discuz_registry_api.php" target="_blank" data-example-id="input-group-sizing">
<input name="username" type="text" class="form-control" placeholder="用户名 " aria-describedby="sizing-addon1">
<br>
<input name="email" type="text" class="form-control" placeholder="邮箱" aria-describedby="sizing-addon2">
<br>
<input name="phone" type="text" class="form-control" placeholder="联系方式" aria-describedby="sizing-addon2">
<br>
<input name="password" type="password" class="form-control" placeholder="密码" aria-describedby="sizing-addon2">
<br>
<input name="password2" type="password" class="form-control" placeholder="确认密码" aria-describedby="sizing-addon2">
<br>
<button type="submit" class="btn btn-md btn-primary" type="button" style="margin-left:120px">  点击注册  </button>
<a style="cursor:pointer;" onclick="changeToLogin()">已有账号,请登录</a>
<br>
</form>
</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div><!-- /.container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="resource/js/jquery.min.js"></script>
<script src="resource/js/bootstrap.min.js"></script>
<script src="resource/js/main.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<!--<script src="./js/holder.min.js"></script>-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="resource/js/ie10-viewport-bug-workaround.js"></script>
<script type="text/javascript">
if( !('placeholder' in document.createElement('input')) ){
$('input[placeholder],textarea[placeholder]').each(function(){
var that = $(this),
text= that.attr('placeholder');
if(that.val()===""){
that.val(text).addClass('placeholder');
}
that.focus(function(){
if(that.val()===text){
that.val("").removeClass('placeholder');
}
})
.blur(function(){
if(that.val()===""){
that.val(text).addClass('placeholder');
}
})
.closest('form').submit(function(){
if(that.val() === text){
that.val('');
}
});
});
}
var bodyBgs = []; //创建一个数组变量来存储背景图片的路径
bodyBgs[0] = "resource/img/banner9.jpg";
bodyBgs[1] = "resource/img/banner2.jpg";
bodyBgs[2] = "resource/img/banner1.jpg";
bodyBgs[3] = "resource/img/banner9.jpg";
bodyBgs[4] = "resource/img/banner8.jpg";
bodyBgs[5] = "resource/img/banner10.jpg";
bodyBgs[6] = "resource/img/banner9.jpg";
var randomBgIndex = Math.round( Math.random() * 6 );
$("#slider").attr("src",bodyBgs[randomBgIndex]);
</script>
</body></html>