Jan
07
Filed Under (Blogging Tips, Design Tips) by Mani Karthik on 07-01-2007

Last day i was searching for “How to reduce eye stress” and came across a blog, which was very useful. I thought i might pin it up on my desk, so took a print out of the page and pinned it up on my desk and left a few copies with my colleagues too.

I had in fact copy pasted the whole text area, to Microsoft Word and took the print out. The whole things came out a bit messy. If only that page had a print option(Apart from the right click thing), could i have got a better print.

I noticed that many websites have this option of - “Print this page” link which directly commands your printer to give copies. But, this feature is ignored in blogs! I cannot think of any good reason as to why.

So here i am, just managed to put up a “Print this page” option on the blog and tested it well on Opera/IE/Firefox and Flock.

Here is the script, simply install it on to your blog template.
Step 1.
Copy this to the head section.

<script>

function printWindow()

{

bV = parseInt(navigator.appVersion)

if (bV >= 4) window.print()

}

</script>

Step 2.
Put the following in the body of your page(Where you need the link).
<a href="javascript:printWindow()">Print This Page </a>

Instead of the Print this page, anchor text, you may use an image/icon.
You may also, add it to the Blogger post footers so that if readers find your post interesting and need to keep a hard copy of it - you leave no option blank!

If you enjoyed this post, make sure you subscribe to my RSS feed!

    Read More   
Post a Comment
Name:
Email:
Website:
Comments:

When commenting on this blog it will automatically find your blog's (if you have one) latest post and link to it.