Creating a floating back to top button that appears as users scroll down your page. WEBSITE phpacademy.org FORUM http TWITTER twitter.com FACEBOOK www.facebook.com

Other Related Blogs

    25 Responses to “jQuery Tutorials: Floating Back To Top Button Plugin (Part 2/2)”

    • kudafoolhu:

      thanks
      

    • nickmokisasian:

      Thanks. But its trippy cos you use the word “this” a lot :)

    • chad362wiley:

      Under 300 ;) 

    • phpacademy:

      @MrKoolTutorials A tutorial on this soon, don’t worry!

    • phpacademy:

      @mvb1996 Thanks for the feedback. Yes, I’ll increase the font size for future videos.

    • mclaarson:

      thank you Alex!

    • PaT07M:

      Thank you very much for those (jQuery) tutorials! Keep going, please.

    • serchan13:

      nice tut ;)
      I would recommend using console.log instead of alert :)

    • nishantve1:

      Hey Alex please zoom in a bit while writing the code . Ctrl+MouseWheelScroll Zooms in automatically in Notepad++ just in case you didnt encountered this . As always the Tutorial was Awesome!

    • zarkmeher:

      alex thanks for a awesome tutorial
      would you please show us how to put a animation effect when we click on the button and it goes up
      please

    • MrKoolTutorials:

      @phpacademy Ok Thanks.

    • blueprint7000:

      All the above is interesting…I had that in my site.. but in some point you want to simplify things and make your js file smaller.. So now i have a button at the bottom with id=’gotop’ and only the following code

      $(‘#gotop’).click(function(){
      $(“html, body”).animate({ scrollTop: 0 }, “slow”)
      });

      And that does its job..

    • alokyadav15:

      please … make your text size large so we can see better
      nice tutorial alex

    • reconhungary:

      cool tutorial :)  Thx!

    • subs2meplease:

      Alex this is such a brilliant tutorial. I’ve been using jQuery for over a year now, and I’ve never actually created my own plugin before. I have so many new ideas for my website now, thanks so much!

    • jerneje:

      thx.

    • stheodosiadis:

      It doesn’t want for me -.- I don’t know what I am doing wrong, I am SURE 100% that my code is written CORRECTLY!

    • nobodyplays:

      Nice one! Liked that You did it as plugin. I’m sure I’ll use it soon in my projects.
      Next tutorial suggsestion: *how To Make that Plugi Scrolling “Visible”. What about that?
      Keep going :)

    • terre0jk:

      you are the best alex,, Iam from iraq and I have nearly watch all your videos ,, thank you man ,

    • billytalent1fan24:

      I love PHP and I love phpacademy, awesome tuts :)

    • MultiMichal2000:

      Or you could od it simply with div id tags and a href…..

    • okush69:

      do you post the code from tutorials somewhere? i went on your website but couldn’t find it. I really need to check my code and fix it, something is wrong. please put the code up on the website or somewhere else

    • ZeTFTW:

      pretty much only one line to fix the resize() problem :)

    • ZeTFTW:

      Also, not sure if it was just me but Internet Explorer was having a problem with $(document).scroll() so I changed it to $(window).scroll() and everything works fine now.

    • redheart419:

      this will give a animated scrolling effect…

      element.click(function() {
      $(‘html, body’).animate({scrollTop:0},speed);
      });

    Leave a Reply

    CommentLuv Enabled

    This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

    Spam Protection by WP-SpamFree

    Get Immediate Access to My Profitable Home Business Opportunity

    Simply Complete the form below and I will take you inside my business and show you how you too can get the lifestyle you deserve.

    First Name:
    Email:

    I promise never to
    share your details.

    Powered by Yahoo! Answers