View Full Version : Printing DHTML scrolling text

09-20-2006, 02:04 PM
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

09-20-2006, 02:47 PM
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;

Or something like this:

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