쉽고 간편한 인쇄 팁
- 관련파일
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 | ||
| 2634 | 6개월 전 | 609 | ||
| 2633 | 6개월 전 | 599 | ||
| 2632 |
|
6개월 전 | 508 | |
| 2631 | 6개월 전 | 569 | ||
| 2630 |
세르반데스
|
6개월 전 | 538 | |
| 2629 | 6개월 전 | 727 | ||
| 2628 | 6개월 전 | 412 | ||
| 2627 | 6개월 전 | 418 | ||
| 2626 |
이슈DEV
|
7개월 전 | 637 | |
| 2625 |
welcome
|
7개월 전 | 645 | |
| 2624 |
이슈DEV
|
7개월 전 | 449 | |
| 2623 | 7개월 전 | 407 | ||
| 2622 | 7개월 전 | 496 | ||
| 2621 | 7개월 전 | 353 | ||
| 2620 |
|
7개월 전 | 370 | |
| 2619 | 7개월 전 | 479 | ||
| 2618 | 7개월 전 | 466 | ||
| 2617 | 7개월 전 | 555 | ||
| 2616 | 7개월 전 | 678 | ||
| 2615 | 7개월 전 | 582 | ||
| 2614 | 8개월 전 | 410 | ||
| 2613 |
바닐라코드
|
8개월 전 | 730 | |
| 2612 | 8개월 전 | 594 | ||
| 2611 | 8개월 전 | 731 | ||
| 2610 | 8개월 전 | 967 | ||
| 2609 | 8개월 전 | 508 | ||
| 2608 | 8개월 전 | 653 | ||
| 2607 | 8개월 전 | 631 | ||
| 2606 | 8개월 전 | 576 | ||
| 2605 | 8개월 전 | 602 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기