By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

two options to print a page

P: n/a
Hi

I have a large page, divided in three sub-topics.
I also have two external stylesheets, each one giving different printing
option, like this:
1. fullprint.css to print the whole page
2. topicprint.css to print each sub-topic in its own page (where each
sub-topic has the page-break-before attribute applied).

Well, I want to add two text links into the page, "print all" and "print
topic", activating each one the corresponding stylesheet.

Is there a javascript for this?
(Please, take it easy, because I don't know very much about javascript) :)
Thanks.

____________________
Merlin dying, to the Lady of the Lake:
"we lived our lives with passion and devotion"

-=- geotso -=-
(remove the TRAP to contact me)
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <bs**********@usenet.otenet.gr>, geotso <ge********@hotmail.com>
writes:
Well, I want to add two text links into the page, "print all" and "print
topic", activating each one the corresponding stylesheet.

Is there a javascript for this?


Give your link tag an id and change its .href property.

<URL: http://members.aol.com/_ht_a/hikksno...ile/index.html />

--
Randy
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.