Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <link rel="stylesheet" href="CSS.css"/>
- </head>
- <body>
- <div id="Top">
- </div>
- <div id="nav">
- </div>
- <div class="Contenu">
- </div>
- <script>
- window.onscroll = function()
- {
- if(getScrollTop()>90)
- {
- var navbar = document.getElementById("Nav");
- navbar.style.position="fixed";
- navbar.style.top="0";
- };
- };
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement