Page navigation is very useful for your reader to move between pages in your blog . Blogger has it own page navigation but it's very simple . Just need a little hack ,you can get a page navigation like the image bellow .
To make a page navigation bar ,first you need to create a html/javascript widget in the main section of blog ,bellow blogpost widget ,and then paste this code :
<div class='pagenextprov'> <script type="text/javascript"> function showpageCount(json) { var thisUrl = location.href; var htmlMap = new Array(); var isFirstPage = thisUrl.substring(thisUrl.length-14,thisUrl.length)==".blogspot.com/"; var isLablePage = thisUrl.indexOf("/search/label/")!=-1; var isPage = thisUrl.indexOf("/search?updated")!=-1; var thisLable = isLablePage ? thisUrl.substr(thisUrl.indexOf("/search/label/")+14,thisUrl.length) : ""; thisLable = thisLable.indexOf("?")!=-1 ? thisLable.substr(0,thisLable.indexOf("?")) : thisLable; var thisNum = 1; var postNum=1; var itemCount = 0; var fFlag = 0; var eFlag = 0; var html= ''; var upPageHtml =''; var downPageHtml =''; var pageCount=5; var displayPageNum=2; var firstPageWord = 'First'; var endPageWord = 'last'; var upPageWord ='Back'; var downPageWord ='Next';
you can change CSS style to make page navigation as you want . Save template . Ok,done .
Guest Blogger
This post was written by a guest contributor. Please see their details in the post above. If you'd like to guest post for SimplexDesign check out our Write for us page for details about how YOU can share your tips with our community.
this doesnt work? it show some stuff from this code ,not navigation?
ReplyDeletewhat to do ?
@Max : Thanks for reporting me error in this code . I changed the code .Could you check it now ? Hope this helpful to you .
ReplyDelete