div 와 iframe을 이용한 특정부분 프린트 하기

<iframe name='print_content' id=print_content width=1 height=1 style="visibility:hidden;"></iframe>
<script type="Text/JavaScript">
<!--
function content_printer(){
    print_content.document.open();
    print_content.document.writeln("<html><head><style>body,td,p,pre,input,textarea,select,option,a,a:hover {font-size:9pt; font-family:tahoma,굴림;}</style></head><body>"); //스타일등을 지정
    print_content.document.writeln(window.document.all.print_content1.innerHTML)
    print_content.document.writeln("</body></html>");
    print_content.document.close();
    print_content.document.execCommand('Print');
}
//-->
</script>
<div id="print_content1"></div>

by 삽질 | 2007/10/01 16:02 | Java Development | 트랙백 | 덧글(0)

트랙백 주소 : http://sangsue.egloos.com/tb/813523
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지다음 페이지 ▶