일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 팬텀2
- 고프로
- 3D프린터
- 드론
- 짜장 라볶이
- 목포
- 닭근위볶음
- 집밥 황금맘
- 핸드스피너
- 싱기버스
- #연근조림
- 제주 풍력발전
- 프루사
- 피젯스피너
- a979
- 퐁당워터
- 퀸스타2호
- 국향축제
- wltoys a979
- 황금맘의 호두강정
- Active Desktop Calendar
- wltoys
- 갈비천왕
- Hairy Lion
- 깻잎김밥
- 크래미 전
- 빽다방
- 닭꼬치
- 황금맘
- 모바일출력
- Today
- Total
So So 한 Tistory
[펌] 자바스크립트 페이지넘길때 대기메세지 본문
[펌] 자바스크립트 페이지넘길때 대기메세지
장점 : 잘된다.
단점 : 외부소스링크 됬을대 시간이 지연된다.(속도저하)
<style type="text/css">
.loading {display:none; position:absolute; top:-4px; left:0; z-index:99; width:100%; height:100%; background:rgba(0, 0, 0, 0.5);}
.loading strong {display:block; position:relative; top:50%; margin:-75px auto 0 auto; width:320px; height:100px; padding:0 30px;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
box-sizing:border-box;
background:#fff;
color:#000; font-size:16px; line-height:50px; text-align:center;
}
</style>
<body>
<div>
<h1> </h1>
<iframe src="주소" width="1" height="1px"></iframe>
</div>
<div class="loading">
<strong>하꼼만 이십서.......<br> [잠시만 기다려주세요]</strong>
</div>
<script type="text/javascript">
$(document).ready(function() {
$('.loading').show();
});
$(window).on('load', function() {
$('.loading').hide();
});
</script>
</body>
</html>