13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Never mind all that—what about saving the planet?<br />

Ah, that! I said I would return to the topic, which is all about saving paper, avoiding needless printouts. With the piece of<br />

JavaScript wizardry you’ve seen in this chapter doing its thing, users can now print just the part of the page that is of interest<br />

to them, and here’s the proof. First, Figure 8-14 shows the results of a printout from the page before the script was<br />

applied—the “before.”<br />

Figure 8-14. Phew—that’s a lot of paper!<br />

And Figure 8-15 shows the results after applying the script—the “after.”<br />

Figure 8-15. Much better!<br />

chapter 8 Print Magic: Using the DOM and CSS to Save the Planet<br />

205

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!