SkyUrdu | The Largest Hub Of Tutorials
Select Menu
  • Home
  • Google Adsence
    • Google Adsence Tricks
    • Supports Languages
    • 11 Tips For Adsence
    • 12 Tips For Adsence
    • 100% Approval Tip
    • Achievement Card
    • Adsense Revenue
    • Verify Account
  • Make Money
    • Earn With Bidvertiser
    • Earn With Freelance
    • Earn With Blogging
    • Earn With You Tube
    • Earn With Ads Cash
    • Earn With Adsence
    • Earn With Infolinks
    • Earn With Typing
  • Blogging
    • 404 ERROR Page
    • Google+ Fallow
    • BackUP/Restore
    • Mobile Templet
    • Custom Domain
    • Blogger Tricks
    • Custom Fonts
    • Templetes
  • SEO
    • Google Algorithm
    • Google Analytics
    • Select Keywords
    • Blogger Vistors
    • Alexa Ranks
    • Robots.txt
    • SEO Tricks
    • SEO Tools
  • Social Media
    • Whatsapp
    • Facebook
    • Pinterest
    • Google+
    • Twitter
    • Skype
    • Imo
    • VK
  • Networks
    • Easypaisa
    • Mobicash
    • Mobilink
    • Telenor
    • Warid
    • Ufone
    • Zong
  • Much More
    • How To
    • Much More
Home » Blogger Tricks » Much More » Arrow Key Navigation for Blogger

Arrow Key Navigation for Blogger

Unknown
Add Comment
Blogger Tricks, Much More
Arrow Key Navigation for Blogger
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.

Add the widget to your sidebar or footer and the Arrow Key Navigation will be activated on your Blog.The Widget title won’t appear on your Blog. So you can give it any appropriate name which will help you in identifying the widget on the layout page.

How to let readers know of this Widget

You might want to add some text to your blog which suggests that your Blog can be traversed using the keyboard arrow keys.Something message similar to “Use the Left or Right Arrow keys to navigate through this blog” might help.

How to Remove the Widget

If you want to remove this widget at any time, you can do that by removing the Arrow Page Navigation Widget from the Layout page.

How this works

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>
Share This!--- Facebook Twitter Google+

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search Hare

Populer Posts

  • Fake ID Card Generator For Facebook Verification
    In this blog we had briefed different reasons why your Facebook ID is getting temporarily locked. Facebook Security automatically lock d...
  • Ufone New SIM Offer
    Ufone Brings the Best New SIM Offer 2016 for its customers to win massive bonus balance of Rs.1000 absolutely free along with free 10GB ...
  • Meta Description Tags to Blogger
    Meta Tags are HTML elements used to provide structured metadata about a web page. Such tags are placed in the head section of an...
  • Ufone SIM Lagao Offer
    Ufone brings new Ufone SIM Lagao Offer for all of its customers nationwide. Ufone brings Re-inserting SIM offer to its prepaid customer...
  • AdSense achievement card
    The most popular and leading legit advertising platform is Google AdSense where billions of people earning money by monetizing their...
  • Newsletter for your Blogger
    Newsletter is a good option when you want to send custom mails to your blog readers. It lets you send content rich HTML emails to ...
  • Are Your Back-links Negatively Affecting Your Ranking?
    Many sites recently suffered a big demotion in terms of Google ranking, and consequently the amount of organic traffic they receive,...
  • Verify Facebook ID in Minutes with other names
    verify Facebook ID in few minutes with other names – Afraid to get blocked by facebook? Check my trick to verify your Facebook accoun...
  • Earn money with YouTube Multi-Channel Networks
    Among various earning sources YouTube one of the best way to earn money. Because if you own a video Blog or a YouTube channel then you c...
Template by Malik HassanHome - Sitemap - Privacy Policy - Terms And Conditions - Disclaimer - Author