Sunday, September 8, 2013

How to Easily Smooth Scroll To Top Button On IP. Board

How to Easily Smooth Scroll To Top Button On IP. Board. To create a button that is easy and practical, please follow the tutorial that I will give below properly.

Preview Demo :

How to Easily Smooth Scroll To Top Button On IP. Board
Tutorial :
  • ACP
  • Look 
  • Feel 
  • Your Skin 
  • globalTemplate


        {parse template="includeJS" group="global" params="$jsModules"}
        {parse template="includeFeeds" group="global" params="$documentHeadItems"}
        {parse template="includeRTL" group="global" params=""}        
        {parse template="includeVars" group="global" params="$header_items"}

Add this code above the one you just found:
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>
<script type='text/javascript'>
jQuery.noConflict();
jQuery(document).ready(function($){

    // Smooth scroll to top
    $('a[href=#top], a[href=#ipboard_body]').click(function(){
        $('html, body').animate({scrollTop:0}, 400);     // Replace 400 with whatever number you want
        return false;
    });

});
</script>



And you're done! With only a few lines of code.

It is How to Easily Smooth Scroll To Top Button On IP. Board, good luck!

thumbnail Title: How to Easily Smooth Scroll To Top Button On IP. Board
Posted by:Stuard Van
Published :2013-09-08T10:00:00-07:00
Rating: 5
Reviewer: 5 Reviews
How to Easily Smooth Scroll To Top Button On IP. Board
Share :
Related articles:

0 comments :

Post a Comment