
For working demo of the widget you can check my earn money blog.
This design credits totally goes to rias of techieblogger as this hack and design has been given by him.
If you want to see other 2 designs of the widget you can check them from here Design 1 ansd Design 2
Follow below steps how to install it :-
Login To Your Blogger And Then Click On Settings And Navigate To Layout Section.
Then Click On Edit/Html.
Now Find for ]]></b:skin> tag and place below codes before it.
.showpageArea {
padding : 10px;
color : #003366;
text-align : left;
width : 530px;
}
.showpageArea a {
float : left;
background : url(http://img2.pict.com/96/d6/a0/560d85d87b7c3fea73e4f41131/y4c23/backbutton.gif) no-repeat 0 0;
text-align : center;
width : 127px;
height : 42px;
text-align : center;
display : block;
margin : 0 5px;
color : #333;
padding-top : 6px;
}
.showpageArea a:hover {
color : #333;
margin : 0 5px;
padding-top : 6px;
}
.showpageNum a {
background : url(http://img2.pict.com/56/25/a3/e5bd7a9aee1773cf20cd242307/UUzOf/pagenum.gif) no-repeat 0 0;
width : 37px;
height : 42px;
display : block;
text-align : center;
float : left;
margin : 0 5px;
padding-top : 6px;
text-decoration : none;
color : #333;
}
.showpageNum a:hover {
background : url(http://img2.pict.com/fb/78/73/0fd48455927b7543953f6f1637/KG3bY/pagenum.gif) no-repeat 0 100%;
color : #fff;
}
.showpagePoint {
background : url(http://img2.pict.com/fb/78/73/0fd48455927b7543953f6f1637/KG3bY/pagenum.gif) no-repeat 0 100%;
width : 37px;
height : 42px;
display : block;
float : left;
text-align : center;
margin : 0 5px;
padding-top : 6px;
font-weight : bold;
color : #fff;
}
.showpageNum a:link, .showpage a:link {
text-decoration : none;
color : #cc0000;
}
Now search for </body> and place the below codes before it.
<script style='text/javascript'>
var pageCount=5;
var displayPageNum=2;
var upPageWord="Previous";
var downPageWord="Next";
</script>
<script type='text/javascript'>
//<![CDATA[
var home_page_url=location.href;function showpageCount(json){var thisUrl=home_page_url;var htmlMap=new Array();var thisNum=1;var postNum=1;var itemCount=0;var fFlag=0;var eFlag=0;var html='';var upPageHtml='';var downPageHtml='';for(var i=0,post;post=json.feed.entry[i];i++){var timestamp1=post.published.$t.substring(0,19)+post.published.$t.substring(23,29);timestamp=encodeURIComponent(timestamp1);var title=post.title.$t;if(title!=''){if(itemCount==0||(itemCount%pageCount==(pageCount-1))){if(thisUrl.indexOf(timestamp)!=-1){thisNum=postNum}if(title!='')postNum++;htmlMap[htmlMap.length]='/search?updated-max='+timestamp+'&max-results='+pageCount}}itemCount++}for(var p=0;p<htmlMap.length;p++){if(p>=(thisNum-displayPageNum-1)&&p<(thisNum+displayPageNum)){if(fFlag==0&&p==thisNum-2){if(thisNum==2){upPageHtml='<span class="showpage"><a href="/">'+upPageWord+'</a></span>'}else{upPageHtml='<span class="showpage"><a href="'+htmlMap[p]+'">'+upPageWord+'</a></span>'}fFlag++}if(p==(thisNum-1)){html+='<span class="showpagePoint">'+thisNum+'</span>'}else{if(p==0){html+='<span class="showpageNum"><a href="/">1</a></span>'}else{html+='<span class="showpageNum"><a href="'+htmlMap[p]+'">'+(p+1)+'</a></span>'}}if(eFlag==0&&p==thisNum){downPageHtml='<span class="showpage"> <a href="'+htmlMap[p]+'">'+downPageWord+'</a></span>';eFlag++}}}if(thisNum>1){html=''+upPageHtml+' '+html+' '}html='<div class="showpageArea"><span style="COLOR: #000;" class="showpageOf"> Pages ('+(postNum-1)+')</span>'+html;if(thisNum<(postNum-1)){html+=downPageHtml}if(postNum==1)postNum++;html+='</div>';var pageArea=document.getElementsByName("pageArea");var blogPager=document.getElementById("blog-pager");if(postNum<=2){html=''}for(var p=0;p<pageArea.length;p++){pageArea[p].innerHTML=html}if(pageArea&&pageArea.length>0){html=''}if(blogPager){blogPager.innerHTML=html}}function showpageCount2(json){var thisUrl=home_page_url;var htmlMap=new Array();var isLablePage=thisUrl.indexOf("/search/label/")!=-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 labelHtml='<span class="showpageNum"><a href="/search/label/'+thisLable+'?&max-results='+pageCount+'">';var thisUrl=home_page_url;for(var i=0,post;post=json.feed.entry[i];i++){var timestamp1=post.published.$t.substring(0,19)+post.published.$t.substring(23,29);timestamp=encodeURIComponent(timestamp1);var title=post.title.$t;if(title!=''){if(itemCount==0||(itemCount%pageCount==(pageCount-1))){if(thisUrl.indexOf(timestamp)!=-1){thisNum=postNum}if(title!='')postNum++;htmlMap[htmlMap.length]='/search/label/'+thisLable+'?updated-max='+timestamp+'&max-results='+pageCount}}itemCount++}for(var p=0;p<htmlMap.length;p++){if(p>=(thisNum-displayPageNum-1)&&p<(thisNum+displayPageNum)){if(fFlag==0&&p==thisNum-2){if(thisNum==2){upPageHtml=labelHtml+upPageWord+'</a></span>'}else{upPageHtml='<span class="showpage"><a href="'+htmlMap[p]+'">'+upPageWord+'</a></span>'}fFlag++}if(p==(thisNum-1)){html+='<span class="showpagePoint">'+thisNum+'</span>'}else{if(p==0){html=labelHtml+'1</a></span>'}else{html+='<span class="showpageNum"><a href="'+htmlMap[p]+'">'+(p+1)+'</a></span>'}}if(eFlag==0&&p==thisNum){downPageHtml='<span class="showpage"> <a href="'+htmlMap[p]+'">'+downPageWord+'</a></span>';eFlag++}}}if(thisNum>1){if(!isLablePage){html=''+upPageHtml+' '+html+' '}else{html=''+upPageHtml+' '+html+' '}}html='<div class="showpageArea"><span style="COLOR: #000;" class="showpageOf"> Pages ('+(postNum-1)+')</span>'+html;if(thisNum<(postNum-1)){html+=downPageHtml}if(postNum==1)postNum++;html+='</div>';var pageArea=document.getElementsByName("pageArea");var blogPager=document.getElementById("blog-pager");if(postNum<=2){html=''}for(var p=0;p<pageArea.length;p++){pageArea[p].innerHTML=html}if(pageArea&&pageArea.length>0){html=''}if(blogPager){blogPager.innerHTML=html}}var thisUrl=home_page_url;if(thisUrl.indexOf("/search/label/")!=-1){if(thisUrl.indexOf("?updated-max")!=-1){var lblname1=thisUrl.substring(thisUrl.indexOf("/search/label/")+14,thisUrl.indexOf("?updated-max"))}else{var lblname1=thisUrl.substring(thisUrl.indexOf("/search/label/")+14,thisUrl.indexOf("?&max"))}}var home_page="/";if(thisUrl.indexOf("?q=")==-1&&thisUrl.indexOf(".html")==-1){if(thisUrl.indexOf("/search/label/")==-1){document.write('<script src="'+home_page+'feeds/posts/summary?alt=json-in-script&callback=showpageCount&max-results=99999" ><\/script>')}else{document.write('<script src="'+home_page+'feeds/posts/full/-/'+lblname1+'?alt=json-in-script&callback=showpageCount2&max-results=99999" ><\/script>')}}
//]]>
</script>
In the above code you can find the below written word and can change its value from 5 to any you want.
1 : var pageCount=5;
*where 5 is the the number of post that apppear in another page you will visit.
2: var displayPageNum=2;
*This code determines the number of additional page navigation numbers that will be displayed on the page.
I hope you will like this widget for sure.And i promise next time will give more beautiful design myself to you as due to lack of time not able to post frequently.Best of Luck !!



29 comments:
Wow! These are whole bunch of codes. Thanks for taking the time sharing it.
I seem to be only partially working.
When I install it it does not show on the first page(home) but on second(next) page. Than if I navigate with this widget it only works to navigate until 2 older pages. If I want to go to third previous page it just redirects me to my last page.
Any hint how to solve this?
Ya Thomas its not working in our template designs i will suggest not to use it your template use images in place of olders posts link and newer posts link check from here
http://anshuldudeja.blogspot.com/2009/02/change-older-post-and-newer-post-link.html
God bless Anshul.
I followed your advice and it works. It is much nicer than before.
Hi Anshul.
Do you mind if you can edit these codes to fit 480px wide content post? Thank you very much Anshul. Nice site.
I just installed it on my blog. Looks AWESOME! Thanks a lot!
Hello
It works no doubt but how do I change the font color? thanks
what you wanna change friend explain exactly?
Hi Ashul. I did manage to change the font but I have a big problem.
If you click page 3 in navigation it will go page 9. Why? My site is here sexywomenonly.blogspot.com
Ya friend its not working on your blog just try again my codes as it is if they work fine, it means you have removed some parts of code while editing this widget code yourself....
hello, this time I just copied and paste. Changed var pageCount=10; to var pageCount=5; because that is what I display on the first page.
still have the problem, before O only changed the font and deleted images.
can you help me?
i think then you should contact the rias from techieblogger the developer of this widget he will tell you clear state about it i have mentioned his link above in post
okey, thanks for your time
great widget ……….
but it couldn’t working fine….
i installed this widget i think u r the real hacker of the code i found it on some other blogs those just modified css of this…
i like the above navigation style that’s why i use it….
” the problem is when i navigate to next or 2 page it navigates some far and it displays only some posts only ”
just check the below blog and use navigation to understand …..
http://funevil.blogspot.com/search/label/Animal%20Pics?max-results=5
Thanks in ADV
From http://funevil.blogspot.com/
god bless you my friend
it works fine on my blog http://fmstuff.blogspot.com/
@ all readers Its not working fine so dont use this widget,it will be updated as soon as it will be fixed.
Hi,nice hack but I wanna show this on my homepage too.While this hack works well from the second page the 1st page(homepage) still shows a small older post link.
How can I sort it out????
Cool, thanx for sharing
My Blog Beautiful Girls
http://girlpicwar.blogspot.com/
and 2 problems I cant show adsense between posts or my template not accepts and Page Navigation working like random 2 then 7 then 6 etc
Plz solve this problem
Hi this is not working for me i added the code to my blog as it is as you said but i can't see it down there. please help me out. only previous page is appearing which is in blog from the start.
i will be waiting for response.
...it's work for me :) ... just change this showaddelement='no' into this showaddelement='yes' on the 'MAIN' section ...
check out my blog (Beneficial Downloads) to see the result ...
Thanks man ... its work! :)
wow atlast ur coding is working perfectly in my site.. i was looking for this for so long and i got it.. Thx alot i will often visit ur site..
Thanks ... it working properly..
Too ugly on my dark template....
It worked but the color really clashes with my template.. is there another one with a different color.. like something simple? Black maybe?
great tips...i'm followed....
Hi brother!
Brother please take look on my blog. I want that pages word should be start first but now it is written after next button.. Thanks
Hi brother!
Brother please take look on my blog. I want that pages word should be start first but now it is written after next button.. direct link is below
http://yahootricksworld.blogspot.com/search/label/Yahoo%20Booters?updated-max=2010-03-14T21%3A37%3A00-07%3A00&max-results=20
Thanks
Post a Comment