Add jQuery Link Nudging On Links Hover For Blogger Blogs

Add jQuery Link Nudging On Links Hover For Blogger Blogs

Add Nice and smooth link nudging to Links on hover. This is great plugin and more attractive to your blog visitors. Here is I am giving two types. that is for custom links and for blogger labels plus custom links.

How to Add Link Nudging by jQuery?

  1. First Go to Blogger Dashboard > Design Tab > Edit HTML Tab
  2. Search for </head> tag
  3. Add following code just Before </head> tag
    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' type='text/javascript'></script>
    <script type='text/javascript'>
        var dur = 400; // Duration Of Animation in Milli Seconds
        $(document).ready(function() {
            $('a.linknudge').hover(function() {
                $(this).animate({
                    paddingLeft: '25px'
                }, dur);
            }, function() {
                $(this).animate({
                    paddingLeft: 0
                }, dur);
            });
        }); // end of Jquery Script
    </script>
  4. Now Save Your template!

When You want to Add link Nudging to your links, Simply add a class “linknudge” to your links like this!

<a class='linknudge' href='http://www.way2blogging.org'>Way2blogging</a>

The above code is For Custom links those are you animating by adding a class of ‘linknudge

Here is another code i am giving that is for your labels as well as for your custom links

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' type='text/javascript'>
</script>
<script type='text/javascript'>
    var dur = 400; // Duration Of Animation in Milli Seconds
    $(document).ready(function() {
        $('a.linknudge, .Label ul li a').hover(function() {
            $(this).animate({
                paddingLeft: '25px'
            }, dur);
        }, function() {
            $(this).animate({
                paddingLeft: 0
            }, dur);
        });
    }); // end of Jquery Script
</script>

Enjoy!

Subscribe to our RSS  Feed or Follow me on Twitter for more Cool Posts !

Do you Like this Article?

rss twitter facebook
Get Subscribe to Free Email Updates!!
*Your email address will not be shared with anyone.
  • 5389440269f3179b64f0bc0f9c3e18c9delicious
Posted on March 15, 2011 • by Harish • in Blogger Jquery, Blogger Tricks20 Comments

20 Comments on “Add jQuery Link Nudging On Links Hover For Blogger BlogsAdd Comment

  1. Noushad Vadakkel March 15, 2011 2:51 pm #

    nice ..:)

  2. Beben Koben March 15, 2011 4:42 pm #

    we can do it with CSS3 now…
    but no smooth like it…hihihi
    thanks for share :)

  3. Harish March 15, 2011 4:48 pm #

    @ Beben Koben
    Ya! You are right!
    Firstly I decided to give this in both CSS & jQuery
    But is little bit Complicated to add in blogger template and using
    so I gave jQuery

    Thanks for Commenting here! Happy Blogging!

  4. Srikanth Rao March 16, 2011 12:40 pm #

    This one is really awesome..
    Thanks for this great script///!

  5. Ashish May 6, 2011 11:20 am #

    I had asked few doubts before also but i didn't get any ans. I am not expecting ans for this one also. But then also i am asking….

    when i use this feature in my template my slider image(in my home page) doesn't work. It works fine if i remove this code from my blog. Can you tell me what could be the problem?

    http://discoverdreamland.blogspot.com

  6. Harish May 6, 2011 2:33 pm #

    @Ashish
    Your answer for previous Question is added.

    You already have a Jquery plugin in your blog.
    and in this widget code i include a jquery plugin(in First line)
    so remove any one duplicate plugin
    it works good :)

  7. Ashish May 20, 2011 5:15 am #

    You asked me to remove one JQuery plugin from the code. I removed from Link Nudging code. Then this time neither my slider image worked nor Link nudging.

    If i copy the whole code then my link nudging is working fine but slider image doesn't work.

    Now tell me what to do???
    Thanks
    http://discoverdreamland.blogspot.com

  8. Harish May 22, 2011 3:45 am #

    @Ashish

    you have the duplicate plugins for menu and slider in your blog
    there are double plugins .
    so your menu and slider is not working, remove the duplicates.
    there is no problem with my side point of view .

  9. Ashish May 23, 2011 9:34 am #

    As i said i had embedded only one JQuery in my blog. So there is no duplicate code. And what do you mean by duplicate plugin? I think a brief explanation with example will help to understand. By the way i had tried all possible ways to embed this code but in vain.
    Thanks
    http://discoverdreamland.blogspot.com

  10. MUXLIMO June 13, 2011 1:33 am #

    works properly on my labels.. thx ^^

  11. edoron777 August 4, 2011 6:53 pm #

    10 very nice :-)

  12. Have A Nice Day Friend December 4, 2011 6:03 pm #

    working perfectly

  13. Have A Nice Day Friend December 9, 2011 2:12 pm #

    As Ashish Said When I Add This Code To My Blog The Slider Doesnt Work, If I Add Removing Jquery Plugin Then Link Nudging Doesnt Work But Slider Works

  14. Pradeep January 7, 2012 1:28 pm #

    Hello, thank you for this tutorial.
    As this script allows to nudge labels I want to nudge my All sidebar links.
    Thank You

  15. Aseem February 15, 2012 1:58 pm #

    where to add label code its not working when i add this just above the /head.,. please help

    • Harish February 15, 2012 5:46 pm #

      You should use only One. and put the code before </head> tag

  16. Charlie February 20, 2012 9:07 am #

    Very cool effect. Thanks! I just want to ask how can I apply this link nudging on “Recent Post” and “Blog Archive”? Can you help me out if it’s okay. :) I tried to find the code for the two gadgets so i can insert the code for link nudge but I can’t find them. Thanks in advance! :)

  17. Kumar April 5, 2012 9:49 pm #

    i like this effect…thanks

  18. Abhishek sony April 23, 2012 1:28 pm #

    Awesome Like this widget

    http://nannu4u.blogspot.com/

    :)

  19. Seroja May 3, 2012 7:57 pm #

    bagaimana cara menambahkan 3 coloum widget diatas footer ??
    thx :)

    Leave a Reply

     

    • Loading...
    © 2012 Way2blogging. Designed by , Powered by WordPress