Monday, 22 February 2010

Unique Page Navigation Bar Below Posts[Blogger]

Page navigation is made to beautify the blog pages and also to make it easier for readers to navigate to all pages of the blog instead of using standard Older Post - Newer Post and Home.
This paging bar placed below your posts will let you to choose which page you wan to go to your blog

Related Blogger Posts :
Flash clock for blogger [without ADS]
Change your Default Cursor

Features :
  • Simple and easy to use without taking much space.
  • user can browse pages by direct imputing page number
  • Has features of first ,prev ,next ,last and an input space for directly jumping to particular page.
 Before editing your template see the image below which will give you clear idea about how its like .

First backup your template .
Click Edit HTML Layout ► ► Click Expand Widget Templates.

Step 1.
Find this line of code <b:include name='nextprev'/>
And place this code below <b:include name='nextprev'/>

 <b:if cond='data:blog.pageType == &quot;index&quot;'> <style type='text/css'> .blogpager { font-size:16px; color: #060; font-weight:bold;} A.blogpager:hover { background:transparent; color:white;} #vwg-pager-first, #vwg-pager-last, #vwg-pager-next, #vwg-pager-prev{ padding:2px 5px; border:1px #cccccc solid; font-weight:bold; margin:2px;} #vwg-pager-first:hover, #vwg-pager-last:hover, #vwg-pager-next:hover, #vwg-pager-prev:hover{ padding:2px 5px; border:1px navy solid; background-color:#24618E; color:white; font-weight:bold;} </style> </b:if> <div align='center' style='margin:5px;'> <form action='#' name='pager20'> <span id='vwg-pager-first'/> <span id='vwg-pager-prev'/> <input name='showingpage' onfocus='' size='4' title='Enter page number that You want to go' type='text' value='init...'/>/<input disabled='disabled' name='pagestotal' size='4' type='text' value='init...'/> <input onclick='checkpager()' type='button' value='Go'/> <span id='vwg-pager-next'/> <span id='vwg-pager-last'/> </form> </div> <script type='text/javascript'> var blogID = &quot;3972232990891503524&quot;; var home_page = &quot;;; var pager_max_main = 3; var pager_first_text = &quot;First&quot;; var pager_last_text = &quot;Last&quot;; var pager_prev_text = &quot;Prev&quot;; var pager_next_text = &quot;Next&quot;; </script> <script src="" type="text/javascript"></script>
 Click preview to make sure that everything is alright.

Step 2:
There are three red places in the above code you need to make changes according to your blog.
3972232990891503524 -this is your blog id which is unique for every blog.(see image below) this with your blog address.
3-Which represents number of posts on the main page .

♦ Click on Save Changes.

Some more Points :
  • It is advisable to host javascript yourself .    pager-script-v20.js
  • You can put this java script code directly to your  template avoiding external linking.
 <script src="" type="text/javascript"></script>


No comments:

Post a Comment