Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

bouton scroll en haut

jQuery(document).ready(function() { 
    fadeMenuWrap(); 
    jQuery(window).scroll(fadeMenuWrap);
});

function fadeMenuWrap() { 
    var scrollPos = window.pageYOffset || document.documentElement.scrollTop; 
    if (scrollPos > 300) { 
        jQuery('div.scrollUp').fadeIn(300); 
    } else { 
        jQuery('div.scrollUp').fadeOut(300); 
    } 
} 
Source by forum.alsacreations.com #
 
PREVIOUS NEXT
Tagged: #bouton #scroll #en #haut
ADD COMMENT
Topic
Name
7+9 =