Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(window).scroll(function(){
- var a = 112;
- var pos = $(window).scrollTop();
- if(pos > a) {
- $("menu").css({
- position: 'fixed'
- });
- }
- else {
- $("menu").css({
- position: 'absolute',
- top:'600px'
- });
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement