2026 년 4 월

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

 
그누스킨 그누소스 소스변경 소스문법 홈준비 기타
 
작성일 : 11-04-09 17:23
[그누소스] 헤드와 테일없이 프린트출력방법과 본문전환 방법
 글쓴이 : Yemam (211.♡.235.69)
조회 : 4,631  
view.skin.php에 넣어줍니다.

<script language="Javascript">
 var initBody
 function beforePrint(){
  initBody = document.body.innerHTML;
  document.body.innerHTML = idPrint.innerHTML;
 }
 function afterPrint(){
  document.body.innerHTML = initBody;
 }
 function printArea() {
  window.print();
 }
 window.onbeforeprint = beforePrint;
 window.onafterprint = afterPrint;

 function printArea1(){
  if (flag == false){
  initBody = document.body.innerHTML;
  document.body.innerHTML = idPrint1.innerHTML;
  flag = true;
} else {
 document.body.innerHTML = initBody;
 flag = false;
}
}
</script>


프린트할 부분과 본문전환할 부분을 아래처럼 감싸줍니다.

<div id="idPrint1"> //본문전환
<div id="idPrint">  //프린트출력   
내용
</div>
</div> 

<input type=button border=0 align=absmiddle value="출력하기" onclick="printArea();">
<input type=button border=0 align=absmiddle value="본문전환" onclick="printArea1();">

[이 게시물은 morning님에 의해 2012-02-26 10:55:04 그누소스에서 이동 됨]

 
 

Total 167
번호 제   목 글쓴이 날짜 조회
152 [그누스킨] morningwebU_schedule Morning 03-22 4927
151 [그누스킨] morningwebU_H Morning 03-22 4670
150 [그누스킨] morningwebU_L Morning 03-22 4748
149 [그누스킨] morningwebU_Z Morning 03-22 4839
148 [그누소스] 보드필드에 강제로 입력하기 Morning 03-21 5861
147 [그누소스] 추가필드 간단하게 만들기 Morning 03-21 4793
146 [소스변경] index 와 bbs/_head.php , _tail.php, group.php 수정 (1) Morning 03-17 61
145 [소스문법] 스타일이용하여 라운딩만들기 Morning 03-06 5604
144 [그누소스] 그누보드 path (12) Morning 03-01 15002
143 [소스문법] 리다이렉트 (3) Morning 02-27 6983
142 [그누소스] 페이지에 최신글이 아닌 게시판을 바로 출력… Morning 02-27 4579
141 [문법] 심볼릭 링크 (1) Yemam 04-10 6071
140 [그누소스] 헤드와 테일없이 프린트출력방법과 본문전환… Yemam 04-09 4632
139 [수정] 정렬에서 추가필더를 추가하기 Yemam 04-07 4540
138 [수정] 카테고리 선택 후 목록(날짜/조회/추천/비추… Yemam 04-07 5290
 1  2  3  4  5  6  7  8  9  10    

Therefore, holy brothers, who share in the heavenly calling,
fix your thoughts on Jesus, the apostle and high priest whom we confess.
Let us fix our eyes on Jesus, the author and perfecter of our faith,
who for the joy set before him endured the cross, scorning its shame,
and sat down at the right hand of the throne of God