Jump to content

Johann_Okt

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Johann_Okt

  1. But there is still one thing that´s a problem...You have to type one line more in your head.

    So that the complete Script part have to sound like this:

    
    
        <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
       <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
       <script>
           $(document).ready(function () {
           $(window).scroll(function () {
           if ($(this).scrollTop() > 100){$('.scrollup').fadeIn();}
           else {$('.scrollup').fadeOut();}});
           $('.scrollup').click(function () {
           $("html, body").animate({scrollTop: 0
           }, 600);
           return false;});});
       </script>
    
    
    

    and than it should work ;D

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.