Notice
														
												
											
												
												
													Recent Posts
													
											
												
												
													Recent Comments
													
											
												
												
													Link
													
											
									| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
													Tags
													
											
												
												- jQuery Plugin
 - 커스터마이징
 - 웹퍼블리셔
 - 포트폴리오
 - work6.kr
 - JQuery
 - 쇼핑몰
 - 개발자
 - 웹디자이너
 - 쇼핑몰구축
 - 워크식스
 - 홈페이지
 - 고도몰
 - 웹개발자
 - 홈페이지구축
 - 프로그래머
 - PHP
 - 웹에이전시
 - 플러그인
 - 쇼핑몰제작
 - 사이트제작
 - 튜닝
 - 웹퍼블리싱
 - plugin
 - 안드로이드
 - 웹디자인
 - 제이쿼리
 - 홈페이지제작
 - 3D프린터
 - CSS
 
													Archives
													
											
												
												- Today
 
- Total
 
그냥 개발자 블로그
[jquery] 전체 레이어 팝업 띄우기 플러그인 1.3 본문
전체화면을 가리고 그 위로 레이어팝업을 띄어야 할때 이용
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.play-ground.kr/js/fullPopup_1.3.js"></script>
<button>레이어팝업</button>
<iframe id="popup_base" src="/blank" style="display:none; position:fixed; width:70%; height:80%; background:#fff; border-radius:4px; "></iframe>
<script>
$(function(){
    $(document).on('click','button',function(){
        $('#popup_base').fullPopupOn({
            width:400,
            height:300
        });
    });
});
</script>
1. 제이쿼리 설치가 필요 합니다.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="/js/fullPopup_1.3.js"></script>
<button>레이어팝업</button>
<iframe id="popup_base" src="/blank" style="display:none; position:fixed; width:70%; height:80%; background:#fff; border-radius:4px; "></iframe>
<script>
$(function(){
    $(document).on('click','button',function(){
        $('#popup_base').fullPopupOn({
            width:400,
            height:300
        });
    });
});
</script>
2. 다운로드 받은 플러그인을 설치 합니다.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="/js/fullPopup_1.3.js"></script>
<button>레이어팝업</button>
<iframe id="popup_base" src="/blank" style="display:none; position:fixed; width:70%; height:80%; background:#fff; border-radius:4px; "></iframe>
<script>
$(function(){
    $(document).on('click','button',function(){
        $('#popup_base').fullPopupOn({
            width:400,
            height:300
        });
    });
});
</script>
3. 팝업 내에 표현될 페이지를 iframe 태그 src에 추가하여, 위와 같이 html 태그를 추가합니다.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.play-ground.kr/js/fullPopup_1.3.js"></script>
<button>레이어팝업</button>
<iframe id="popup_base" src="/blank" style="display:none; position:fixed; width:70%; height:80%; background:#fff; border-radius:4px; "></iframe>
<script>
$(function(){
    $(document).on('click','button',function(){
        $('#popup_base').fullPopupOn({
            width:400,
            height:300
        });
    });
});
</script>
4. 버튼을 클릭하였을 경우 동작함수를 다음과 같이 추가 합니다.
5. 플러그인은 워크식스 홈페이지에서 만나보실 수 있습니다.
[과거버전 사용법 보러가기]
2015/10/31 - [Jquery] - jquery 플러그인으로 전체화면 레이아웃 띄우기
'소식 > 플러그인소식' 카테고리의 다른 글
| 제이쿼리 플러그인 만들때 결과 리턴 받기 (callback) (0) | 2016.04.27 | 
|---|---|
| pageScroll.js - 원페이지 사이트에 스크롤 부드럽게 움직이는 페이지 (0) | 2016.04.13 | 
| [jquery] 페이드인 페이드아웃 배너 플러그인 (0) | 2016.03.02 | 
| jquery 플러그인으로 전체화면 레이아웃 띄우기 (0) | 2015.10.31 | 
| 슬라이드 갤러리 플러그인 (0) | 2015.10.29 |