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>

관련자료

등록된 댓글이 없습니다.
Today's proverb
가지로 자태를 뽐내기 보다 비록 보기에는 볼품없지만 뿌리를 내리기 위해 힘쓰는 자가 되자.