Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

scroll down style

    <script type="text/javascript">
$window.scrollTop(function(){ 

var a = 112;
var pos = $window.scrollTop();
if(pos > a) {
    $("menu").css({
                position: 'fixed'
            });
}
else {
    $("menu").css({
                position: 'absolute',
                top:'600px'
            });
}
});
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scroll #style
ADD COMMENT
Topic
Name
1+3 =