Navigating through a website using the keyboard arrow keys is really useful as you don't have to look around the page for the Newer or Older page links. You might have already seen this feature on many top blogs.It’s really easy to implement this feature on your Blogger Blog.You just have to add the arrow key navigation widget to your blogger blog.
This is a really simple and clean widget and you can see a demo of this widget right on this page. If you use the Right and Left arrow keys, you will be able to navigate to different pages on this blog. This works not just on the post pages, but also on the blog’s home page and label pages.The Arrow Key Navigation Widget will be disabled when you are typing something into a text box on the blog(This was done to avoid the page from being changed when the user is typing something into a text box and uses the arrow keys to move around this text.).
Why should I add this widget
This is a simple light weight widget which doesn’t depend on any external libraries and it’s really easy to install as well. It will give users a better experience when they are navigating across different pages of your blog.They won't have to scroll all the way down to the bottom of the page and look for the Older and Newer page links.
How to add this Widget
You can add this widget by using the below one click installer.
If you are curious about how this works, then below is the actual code behind the widget. The code listens for Keyboard inputs and if detects an Arrow Key event, it will redirect the user to the newer or older page. The code picks the newer and older page links from the Blogger’s Page Navigation Links.
<script type='text/javascript'> document.onkeyup = function(event) { if (document.activeElement.nodeName == 'TEXTAREA' || document.activeElement.nodeName == 'INPUT') return; event = event || window.event; switch(event.keyCode) { case 37: var newerLink = document.getElementById('Blog1_blog-pager-newer-link'); if(newerLink !=null) window.location.href = newerLink.href; break; case 39: var olderLink = document.getElementById('Blog1_blog-pager-older-link'); if(olderLink!=null) window.location.href = olderLink.href; } }; </script>
Please share your thoughts queries or suggestions :-) and if you need further help do let us know.
Thanks a bundle!
ReplyDeleteCool!
ReplyDeleteThanks!
ReplyDeleteI always look for something like this, thanks a lot! Used in Neoverso Comics
ReplyDeletevery smart, nice^^
ReplyDeleteSmart one....working gr8 Technogist
ReplyDeletenice post thanks a lot :)
ReplyDeletenice post man , can u tell me which template are you using
ReplyDeleteThis site is using "Denim" blogger template designed by www.DarrenDelaye.com :)
DeleteThank you!! :D
ReplyDeleteTwo thumbs up!!
ReplyDeleteThank you very much
ReplyDeleteThank you very much
ReplyDeleteThank you so much it helps us a lot, we are using them in www.pallibatani.com
ReplyDeleteAwesome, thank you very much!
ReplyDeletethnks yaar.......
ReplyDeleteHey,
ReplyDeleteI got a problem with navigation in blogger.
I've previously used one of your numbered pages navigation but have now removed it as I think it or perhaps something else is causing me trouble.
I have selected "Show a number of 10" posts for the main page, but it's only showing 4.
What is wrong, and how can I solve this?
It's frustrating..
For examples: http://www.mypassion4footballmanager.com/
The two posts on http://www.mypassion4footballmanager.com/search?updated-max=2013-08-15T14:18:00%2B01:00&max-results=10 this link should be a the main page:S
thanks, i will try it.
ReplyDeletethanks a lot :)
ReplyDeletewhenever i using the arrow key it redirect to another page. very cool feature and very simple awesome code. thank you
ReplyDelete