음....레이어로 나누어서
인쇄를 시작하기전에 현재 내용을 안보이게 해놓고
원하는 내용만 다른 레이어에 담다 그 레이어만 노출을 시키고 프린트를 한다.
프린트가 완료되면 노출된 레이어내용을 제거하고 숨겨진 원본 레이어를 다시 노출시킨다...

아래는 위 내용을 만들어논것.....예전에 어디서 알게된건데....기억도 안나고....
하여튼 원래 내용이 작동을 잘 안하고 그래서 좀 변경을 했다...레이어를 좀 추가시켰다고 해야하낭...
할튼 페이지 내용이 많다면 내용을 옮기고 뭐 이런것때문에 시간이 좀 많이 걸린다...약 100-200 페이지 이상 되는 출력일 경우이므로 그리 문제는 없다...그정도페이지면 원래 많이 걸린다...이게 좀더 많이 걸린다느것뿐....-0-;;;


============================================

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> 인쇄 테스트 </TITLE>

<script language="JavaScript">
    function printLayer () {
      if (document.all && window.print) {
        window.onbeforeprint = beforeLayer;
        window.onafterprint = afterLayer;
        window.print();
      }
    }
    function beforeLayer () {
      if (document.all) {
        objContents.style.display = 'none';
        objSelection.innerHTML = document.all['printArea'].innerHTML;
      }
    }
    function afterLayer () {
      if (document.all) {
        objContents.style.display = 'block';
        objSelection.innerHTML = "";
      }
    }


</script>

</HEAD>

<BODY>

<DIV ID="objContents">

    이건 안찍을꺼란 말이지...

    <input type="button" value="출력" onclick="printLayer();">


    <DIV id="printArea" name="taxBill">

    이걸 찍을꺼야~~~

    </DIV>


</DIV>

<DIV ID="objSelection">
</DIV>


</BODY>
</HTML>
2007/09/01 23:02 2007/09/01 23:02

Trackbas address :: http://zekill.pe.kr/blog/trackback/83

  1. Tracked from blue velvet pillow covers at 2023/10/15 14:41  삭제

    Subject: blue velvet pillow covers

    3.Yarn Selection: The choice of yarn is crucial in creating knitted clothing."wwwsentro-knittingmachinecom_2024" Consider the fiber content, weight, and drape of the yarn. Natural fibers like wool, cotton, or silk can provide different characteristics......

  2. Tracked from sentro knitting machine at 2023/10/15 14:42  삭제

    Subject: sentro knitting machine

    Circular knitting machines have a cylindrical or circular needle bed with multiple needles arranged in a circle."wwwsentro-knittingmachinecom_2024" They can be manual, semi-automatic, or fully computerized, depending on the complexity and features of t......

  3. Tracked from sentro knitting machine for sale at 2023/10/15 14:42  삭제

    Subject: sentro knitting machine for sale

    4.Knit the Ribbing: Start knitting the ribbing section of the hat. Use a rib stitch pattern, such as K2, P2,"wwwsentro-knittingmachinecom_2024" to create an elastic and stretchy brim. The number of rounds for the ribbing will depend on your desired len......

  4. Tracked from yarn bag at 2023/10/15 14:42  삭제

    Subject: yarn bag

    8.Try On and Adjust: When the knitting is complete,"wwwsentro-knittingmachinecom_2024" try on the top to check the fit. Make any necessary adjustments by adding or removing stitches, or modifying the length if needed. The pattern should provide guidanc......

  5. Tracked from sentro knitting machine 22 needles at 2023/10/15 14:43  삭제

    Subject: sentro knitting machine 22 needles

    6.Finishing and Assembly: After knitting the hats, some additional time may be needed for finishing touches,"wwwsentro-knittingmachinecom_2024" such as securing loose ends or assembling any components, like pom-poms or embellishments....

  6. Tracked from crochet bags for crocheting at 2023/10/15 14:43  삭제

    Subject: crochet bags for crocheting

    Overall, electric knitting looms offer a convenient and efficient way to knit, allowing you to create a variety of knitted items with ease.A 32-needle knitting machine typically refers to a small-scale, handheld knitting machine that has 32 individual......

  7. Tracked from 22 needles knitting machine at 2023/10/15 14:43  삭제

    Subject: 22 needles knitting machine

    4.Machine Type: Decide on the type of knitting machine you prefer."wwwsentro-knittingmachinecom_2024" This could be a manual knitting machine, punch card machine, or an electronic machine. Each type has its own advantages and learning curve, so conside......

  8. Tracked from sentro 22 pin knitting machine at 2023/10/15 14:43  삭제

    Subject: sentro 22 pin knitting machine

    That's great to hear that you're a knitting enthusiast! Knitting is a wonderful hobby that offers both relaxation and creativity. Whether you're a beginner or an experienced knitter,"wwwsentro-knittingmachinecom_2024" there's always something new to le......

  9. Tracked from sentro 48 pin knitting machine at 2023/10/15 14:43  삭제

    Subject: sentro 48 pin knitting machine

    4.Versatility: 48-needle knitting machines can handle various yarn weights and types,"wwwsentro-knittingmachinecom_2024" allowing you to create a wide range of projects, from lightweight and delicate fabrics to chunky and cozy accessories....

  10. Tracked from pompom makers at 2023/10/15 14:43  삭제

    Subject: pompom makers

    銆怉dd a Pop of Color to Your Home銆?"wwwsentro-knittingmachinecom_2024" You can make realistic ice pop sculptures by hand pouring multiple layers of crystal clear resin and finishing with delicate detail. Each sculpture is unique and can not be exactl...

  11. Tracked from get here at 2023/10/15 14:44  삭제

    Subject: get here

    2.Automatic Scarf Maker Machines: Automatic machines are motorized or electronic devices that automate the knitting or weaving process."wwwsentro-knittingmachinecom_2024" They often have pre-programmed patterns or settings that allow you to create vari......

  12. Tracked from yarn storage bag at 2023/10/15 14:44  삭제

    Subject: yarn storage bag

    1.Increased Efficiency: By using a power adapter, you can automate the knitting process,"wwwsentro-knittingmachinecom_2024" allowing you to complete projects more efficiently. With a moderate speed, you can strike a balance between speed and control, e......

  13. Tracked from knitting machine adapter at 2023/10/15 14:44  삭제

    Subject: knitting machine adapter

    Crochet knitting machines offer several advantages, including increased speed and efficiency compared to hand crocheting."wwwsentro-knittingmachinecom_2024" They are particularly useful for producing large quantities of crocheted items, such as blanket......

  14. Tracked from SENTRO at 2023/10/15 14:44  삭제

    Subject: SENTRO

    Absolutely!"wwwsentro-knittingmachinecom_2024" A knitting machine can indeed make the process of creating scarves, hats, fabric pieces, socks, and more much easier and quicker compared to traditional hand knitting. Here are some benefits and features o......

  15. Tracked from knitting machine 40 needles at 2023/10/15 14:44  삭제

    Subject: knitting machine 40 needles

    2.The "Oops" Scarf: With this machine, mistakes turn into masterpieces. No matter how skilled your child is at knitting,"wwwsentro-knittingmachinecom_2024" this machine has a magical ability to create unexpected patterns and designs. Who knows? They mi......

  16. Tracked from sentro knitting machine 22 at 2023/10/15 14:44  삭제

    Subject: sentro knitting machine 22

    YouTube Tutorials: Explore YouTube for tutorials and demonstrations on using the Sentro Knitting Machine."wwwsentro-knittingmachinecom_2024" Some creators may provide free patterns along with their videos or share pattern links in the video descriptions....

  1. Commented by the22th at 2008/06/23 16:55

    <style media="print"> </style> 등으로 display:none을 적당한 셀렉터에 주어 스크립트없이도 가능할지 모르겠네요.

  2. Commented by zekill at 2008/07/28 11:00

    디스플레이 변경으로 가능도 하긴 하지만 none으로 했다 block 으로 했다 하는 처리도 스크립트로 변경을 해주긴해야 할듯 합니다^^

  3. Commented by zekill at 2008/08/04 01:55

    아...<style media="print"> 이걸 안보고 display:none 만 보았네요..^^;;;;
    댓글 달렸다는데 너무 기뻐서 넵다 답글부터 달다보니 이런일이...ㅋ

    음..말씀하신대로 print시에만 해당 부분을 노출시켜도 될듯하네요^^;;
    지금 프린터가 고장이나서 테스트를 해볼수없으니 원...ㅋ
    한번 테스트되면 글을 붙여야겠습니다^^
    아이디어 감사합니답(__)

  4. Commented by 떠돌이나그네 at 2011/04/06 12:01

    감사합니다..
    정말 이것때문에 고민 많이 했거든요..
    한방에 해결되었네요
    ㅎㅎ
    좋은정보 감사합니다~~

  5. Commented by 빅토리 at 2011/04/12 11:35

    좋은자료 감사합니다. 퍼갈게요^^

[로그인][오픈아이디란?]
오픈아이디로만 댓글을 남길 수 있습니다