Results 1 to 2 of 2

Thread: print fuction

  1. #1
    Join Date
    Aug 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default print fuction

    Hello people. i need a help, i nedd a JS that lem print just a part of a HTM page, i`ve downloaded these days a JS here but it let me print all of the page and i need to print just a littel table tha`s in the HTM. does someone please can help me??
    hugs from Brazil

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This is easier to do with style. Make a separate style sheet called say, print.css and link it to your page in the head with:
    HTML Code:
    <link rel="stylesheet" type"text/css" href="print.css" media="print">
    Then, in print.css set everything except what you want printed to:
    Code:
    display:none;
    See:

    Print Different

    for more information, or just Google:

    media print css

    Also, check here:

    http://www.dynamicdrive.com/dynamici...printstyle.htm
    Last edited by jscheuer1; 08-20-2005 at 03:44 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •