How the Print Version Works
EPA's new print style sheet looks a lot different than the old one. In fact, the old one didn't exist.
Sample Output
Here an image capturing the print output of template 3.2.1.
URLs Provided for your Reference
The "URLs Provided for your Reference" section is generated by a JavaScript function (first developed by Aaron Gustafson , but edited for our purposes). The function searches for all qualified links within the main content section of template 3, attaches an endnote, and writes out the URL for each unique link at the bottom of the print output. We believe this list is incredibly helpful for our readers, especially with a long list of links in the content.
Qualified Links
To print out the links for a specific page, wrap the part of your page with the links in a div with an id of "printURLs". Here's an example:
<div id="printURLs"> {content with lots of links here} </div>
Additionally, this JavaScript function ignores the following kinds of links:
- href is javascript code or is simply '#';
- href is equivalent to anchor's inner text (that is, you spelled out the URL in the markup);
- there's a class of "ignore" on the parent element. Example: using <p class="ignore"> means the links in this paragraph will not be printed;
- You can use this class on other elements if you don't want the link printed out
- email addresses (it's an EPA Web Standard to spell out email addresses);
- img src (for some reason, IE prints out the address pointing to the image); and
For more information, please see the original article, by Mr. Gustafson, at A List Apart .