Html & Script

원하는부분만 프린트 하기

컨텐츠 정보

본문

--


<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
등록된 댓글이 없습니다.
Today's proverb
너의 하루하루가 너를 형성한다. 그리고 머지 않아 한 가정을, 지붕 밑의 온도를 형성할 것이다. 또한 그 온도는 이웃으로 번져 한 사회를 이루게 될 것이다. 이렇게 볼 때 너의 ‘있음’은 절대적인 것이다. 없어도 그만인 존재가 아니라는 말이다. (법정스님)