View unanswered posts | View active topics It is currently Thu Sep 09, 2010 2:30 pm



Post new topic Reply to topic  [ 2 posts ] 
 Printing panels as a single html document! 
Author Message

Joined: Mon Jan 11, 2010 8:12 am
Posts: 1
Post Printing panels as a single html document!
New to this board!

Has anyone put forward a javascript function to re-combine the div's for printing?


Mon Jan 11, 2010 8:14 am
Profile

Joined: Mon Jan 11, 2010 3:19 pm
Posts: 2
Post Re: Printing panels as a single html document!
The first step would be to create a print specific CSS stylesheet for the slider. In the "print.css" you would define the element "coda-slider-wrapper" without "overflow:hidden" that would change the panels from horizontal to vertical making it more printer friendly. You'll want to go a step further and define the rest of the slider to print nicely, I've included an article that goes over those specifics. Remember, ".panel" defines the individual slides and will most likely need to be defined further for print, paper is precious and don't make your users print too many sheets with empty space.

Printing With Javascript: http://www.htmlgoodies.com/beyond/javascript/article.php/3471121
Print Specific CSS: http://www.alistapart.com/articles/goingtoprint/

The CSS call:
Code:
<link rel="stylesheet"  type="text/css" media="print" href="print.css" />


The HTML To call the print:
Code:
<A HREF="javascript:window.print()">


I hope this works for you, I haven't tested it. This is not a final product and will need more work on your part. Remember with all of this coding stuff it's trial and error - have fun! ;)


Mon Jan 11, 2010 3:40 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.