PDA

View Full Version : printing...


DR.Wong
06-28-2005, 11:31 AM
hi guys. I use buttons for navigation on my site. I also have a few pages that I print from (using a print page button). Now, the thing is, it looks really bad having all those buttons printed with the page. is there a way in javascript NOT to print any buttons or is there a way to configure IE not to print buttons?

jbot
06-28-2005, 11:34 AM
add this to you stylehsheet:

@media print
{
.buttons {display:none;}
}

and give the buttons a classname of "buttons".

DR.Wong
06-28-2005, 03:39 PM
thanks, but is there a way to do it in javascript?

jbot
06-28-2005, 03:46 PM
is there a way to do it in javascript?

no, why would you need to. the CSS only works when printing, so any other solution is a waste of time.

DR.Wong
06-29-2005, 06:07 PM
sorry, I did not see the first lines of your sentence. the css works fine. Thanks alot!

DR.Wong
06-30-2005, 12:08 PM
While we are on the topic of printing, is it possible to not print all of that useless info, such as the dat and page 1 of 2 ect. Can you just print the page title?

I know you can configure it in IE, but obviously that does no help.

Thanks in advance! :) :thumbsup:

_Aerospace_Eng_
06-30-2005, 12:09 PM
no thats a user preference nothing you can do about that.

DR.Wong
07-01-2005, 12:31 PM
Thanks. Thats a pitty. :thumbsup: