쉽고 간편한 인쇄 팁
- 관련파일
ecos_include_printBody
printBody.php
설명서.txt
- 설치
- 압축을 푼 ecos_include_printBody 폴더를 스킨폴더에 이동한다.
- 인쇄 기능을 추가하고자 하는 기존 스킨의 view.skin.php 임의의 위치에 아래 코드를 적용한다.
<?php include_once($board_skin_path.'/../ecos_include_printBody/printBody.php'); ?>
// _/_/_/_/_/_/_/_/_/_/_/_/_/
// printBody.php 내용
// _/_/_/_/_/_/_/_/_/_/_/_/_/
<style>
@media print {
#bo_vc_w, #bo_v_top, #bo_v_share, .cmt_btn, .btn { display: none !important; }
}
</style>
<input class="btn_b01 btn" style="float:right; margin: 10px;border-radius: 4px;" type='button' id='btn' value='인쇄' onclick='printDiv();'>
<script>
function printDiv() {
var divToPrint=document.getElementById('container');
var newWin=window.open('','Print-Window');
newWin.document.open();
newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>
newWin.document.close();
setTimeout(function(){newWin.close();},10);
}
</script>
댓글 4개
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4402 | ||
| 2544 | 11개월 전 | 940 | ||
| 2543 | 11개월 전 | 840 | ||
| 2542 | 11개월 전 | 743 | ||
| 2541 | 11개월 전 | 772 | ||
| 2540 | 11개월 전 | 1180 | ||
| 2539 | 11개월 전 | 1019 | ||
| 2538 | 11개월 전 | 1002 | ||
| 2537 |
|
11개월 전 | 841 | |
| 2536 | 1년 전 | 1226 | ||
| 2535 |
|
1년 전 | 779 | |
| 2534 |
|
1년 전 | 884 | |
| 2533 |
거북이와두루미
|
1년 전 | 1659 | |
| 2532 | 1년 전 | 793 | ||
| 2531 | 1년 전 | 674 | ||
| 2530 | 1년 전 | 720 | ||
| 2529 | 1년 전 | 1062 | ||
| 2528 |
|
1년 전 | 554 | |
| 2527 | 1년 전 | 1132 | ||
| 2526 | 1년 전 | 744 | ||
| 2525 | 1년 전 | 1107 | ||
| 2524 | 1년 전 | 911 | ||
| 2523 | 1년 전 | 1333 | ||
| 2522 | 1년 전 | 957 | ||
| 2521 | 1년 전 | 1309 | ||
| 2520 | 1년 전 | 1185 | ||
| 2519 | 1년 전 | 1058 | ||
| 2518 |
Lemios
|
1년 전 | 865 | |
| 2517 | 1년 전 | 955 | ||
| 2516 | 1년 전 | 1700 | ||
| 2515 | 1년 전 | 845 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기