Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-12-2002, 04:08 PM   PM User | #1
Trusten
Regular Coder

 
Join Date: Jul 2002
Location: Earth
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
Trusten is an unknown quantity at this point
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.
Trusten is offline   Reply With Quote
Old 07-12-2002, 04:18 PM   PM User | #2
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
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
QuackHead is offline   Reply With Quote
Old 07-12-2002, 04:21 PM   PM User | #3
Trusten
Regular Coder

 
Join Date: Jul 2002
Location: Earth
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
Trusten is an unknown quantity at this point
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.
Trusten is offline   Reply With Quote
Old 07-12-2002, 04:52 PM   PM User | #4
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
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" />

...
Roy Sinclair is offline   Reply With Quote
Old 07-12-2002, 05:49 PM   PM User | #5
Feyd
Regular Coder


 
Feyd's Avatar
 
Join Date: May 2002
Location: Los Angeles, CA Maxim: Subvert Society
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Feyd is an unknown quantity at this point
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
Feyd is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:26 PM.


Advertisement
Log in to turn off these ads.