A

로딩시 이미지 보여주기

<style type="text/css">
#loading {
width: 100%;
height: 100%;
top: 0px;
left: 0px;
position: fixed;
display: block;
opacity: 0.7;
background-color: #fff;
z-index: 99;
text-align: center; }

#loading-image {
position: absolute;
top: 100px; <-- 이부분과
left: 240px; <-- 이부분을 50% 로 하면 화면 정 가운데에 로딩 이미지가 나타난다
z-index: 100; }
</style>

<div id="loading"><img id="loading-image" src="/imgs/ajax-loader.gif" alt="Loading..." /></div>
<div>
<img src = "/imgs/sample/cutyDog.jpg">
</div>

<script language="javascript" type="text/javascript">
$(window).load(function() {
$('#loading').hide();
});
</script>

---
별거 아니구먼요
|

댓글 4개

감사합니다.
감사합니다 :)
감사합니다!! 잘썼습니다><
댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 팁자료실

+
제목 글쓴이 날짜 조회
8년 전 조회 4,408
8년 전 조회 5,755
8년 전 조회 5,088
8년 전 조회 7,939
8년 전 조회 4,600
8년 전 조회 8,363
8년 전 조회 7,847
8년 전 조회 6,256
8년 전 조회 4,338
8년 전 조회 4,775
8년 전 조회 3,587
8년 전 조회 5,631
8년 전 조회 5,560
8년 전 조회 3,868
8년 전 조회 6,711
8년 전 조회 4,600
8년 전 조회 8,572
8년 전 조회 8,048
8년 전 조회 5,795
8년 전 조회 3,416
8년 전 조회 4,482
8년 전 조회 3,789
8년 전 조회 5,537
8년 전 조회 4,897
8년 전 조회 4,925
8년 전 조회 5,794
8년 전 조회 8,211
8년 전 조회 6,824
8년 전 조회 1.5만
8년 전 조회 9,295