Re: Change flavour "on the fly", possible?

Asheesh Laroia <[email protected]> Thu, 1 Nov 2007 11:19:25 -0700 (PDT)
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Thu, 1 Nov 2007, will wrote:

> The PyBlosxom site has a print flavour that looks like the html flavour 
> except it's missing all the navigation and some of the other stuff.
>
>    http://pyblosxom.sourceforge.net/?flav=print
>
> There are a couple of ways you could do what you're advocating.  The 
> first is that you can do what we did with the PyBlosxom site and have a 
> print flavour.  Then you have a link to the print version.
>

> The other way to do it is with DHTML and JavaScript.  The user clicks on 
> a button or link and with JavaScript you make the sidebar and whatever 
> other elements on the page you want to disappear hidden.

http://www.alistapart.com/articles/goingtoprint/ discusses how to achieve 
a print style by using no JavaScript and only fully-standard CSS.  I 
recommend it.  Here's the "snapshot" from the website:

 	Say no to “printer-friendly” versions and yes to printer-specific style
 	sheets. CSS expert Eric Meyer shows how to conceive and design print style
 	sheets that automatically format web content for off-screen delivery.
 	Includes tips on hiding inappropriate content, styling text for the
 	printer, and displaying the URL of every link on the page.

-- Asheesh.

--
If you can count your money, you don't have a billion dollars.
 		-- J. Paul Getty

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
pyblosxom-users mailing list
pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users