Web Analytics Made Easy -
StatCounter Print friendly page - CodingForum

Announcement

Collapse
No announcement yet.

Print friendly page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Print friendly page

    Is there any way to make a second (layer) page that will print out when someone presses print?

    since my main page has a lot of graffics.
    Life is funny, especially when you're poor.

  • #2
    there's no way to just print a layer (as far as I know)

    why not just make a separate page for text-only (or a very scaled down version) and just send the user there to print?

    ~Quack

    Comment


    • #3
      never thought of that. honestly, that's why i didn't make it, but now, *shrug* no excuse, huh?

      Thanks a lot.
      Life is funny, especially when you're poor.

      Comment


      • #4
        Use media specific style sheets instead. With a media specific style sheet you can hide things that aren't appropriate for printing while only having to maintain a single page.

        ...

        <style type="text/css">
        @media print
        {
        .displayOnly { display: none ; }
        }
        </style>

        ...

        <img id="nottoprint" ... class="displayOnly" />

        ...
        Check out the Forum Search. It's the short path to getting great results from this forum.

        Comment


        • #5
          Be aware that you'll get into cross-browser issues using specific print medai CSS options.

          You could also use a serverside script (I've done them in PERL, PHP and ASP, it isn't difficult) that opens the requested file and RegEx removes blocks of text you define (usually with beginning and ending comments), so the script parses them out and you end up with a printer friendly page unbound by the constraints of your site's layout (at least, as much as you want the layout to disapear).
          Moderator, Perl/CGI Forum
          shadowstorm.net - subvert society

          Comment

          Working...
          X