Results 1 to 2 of 2

Thread: Printing DHTML scrolling text

  1. #1
    Join Date
    Sep 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Printing DHTML scrolling text

    First post:

    I need to add a cross-browser print function to a web page. The page has scrolling text (built with layers). I either need to build a separate 'printer-friendly' set of pages (like 80 ;-) or with a bit of help from you find a suitable solution that allows me to add a function to the page that tells the screen what specifically to print.

    You can view the site at: www.chesteryes.com (specifically, the sub pages are what I want to print).

    Thanks in advance

  2. #2
    Join Date
    Sep 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    First Reply - to First Post (lol)

    I think I found what I was looking for here on DD (Thanks to posts help by Twey + MWinters). Instead of looking for a JS - I need to use a bit of CSS as in the following:

    <style type="text/css">
    @media print {
    img {
    display: none;
    }
    * {
    background-image: none;
    border-style: none;
    background-color: white;
    color: black;
    }
    }
    </style>

    Or something like this:

    @media print {
    body {
    visibility: hidden;
    }
    #text {
    visibility: visible;
    }
    }

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
  •