원하는부분만 프린트 하기
컨텐츠 정보
- 19,802 조회
- 5 추천
- 목록
본문
--
<SCRIPT LANGUAGE="JavaScript">
<!--
function order_print_fun()
{
p = order_print.innerHTML
var width = 1;
var height = 1;
ypwindow = window.open("", "Order_print", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width="+width+",height="+height+",top=3,left=2000");
ypwindow.document.open();
ypwindow.document.write("<html><head><title>idsu.net 프린트</title></head>");
ypwindow.document.write("<body leftmargin=0 topmargin=0 onload=\\"window.print();self.close();\\">");
ypwindow.document.write("<style>body, td, th, caption, input, select, textarea, caption, p {font-size:9pt; font-family:굴림;}</style>");
ypwindow.document.write(p);
ypwindow.document.write("</body></html>");
ypwindow.document.close();
}
//-->
</SCRIPT>
<form name="print">
<div id="order_print">
여기 프린트 할부분 주저리주저리
</div>
</form>
<a href="javascript:" onclick="order_print_fun();">프린트하기.</a>
<SCRIPT LANGUAGE="JavaScript">
<!--
function order_print_fun()
{
p = order_print.innerHTML
var width = 1;
var height = 1;
ypwindow = window.open("", "Order_print", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width="+width+",height="+height+",top=3,left=2000");
ypwindow.document.open();
ypwindow.document.write("<html><head><title>idsu.net 프린트</title></head>");
ypwindow.document.write("<body leftmargin=0 topmargin=0 onload=\\"window.print();self.close();\\">");
ypwindow.document.write("<style>body, td, th, caption, input, select, textarea, caption, p {font-size:9pt; font-family:굴림;}</style>");
ypwindow.document.write(p);
ypwindow.document.write("</body></html>");
ypwindow.document.close();
}
//-->
</SCRIPT>
<form name="print">
<div id="order_print">
여기 프린트 할부분 주저리주저리
</div>
</form>
<a href="javascript:" onclick="order_print_fun();">프린트하기.</a>
관련자료
댓글 0
등록된 댓글이 없습니다.