Tag: JQuery Scroll Top

How To Scroll Top In JQuery?

Example: <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js”></script> </head> <script> $(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 100) $(‘.scrollToTop’).show(); else $(‘.scrollToTop’).hide(); }); $(‘.scrollToTop’).click(function(){ $(‘html, body’).animate({scrollTop : 0},250); return false; }); }); </script> <style> .scrollToTop { position: fixed; bottom: 3px; right: 25px; display:none; cursor:pointer; } </style> <body> <h3> Please scroll down to see effect </h3> <span style=”float:right”> <button type=”button” class=”scrollToTop”> Go TO […]

Posted in: CSS, HTML, jQuery, Solutions
Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .