Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function init(){
- wMenubar = document.getElementById("wMenuBar");
- wLogo = document.getElementById("wLogo");
- }
- window.onscroll = function (e){
- if (window.scrollY > 50){
- wMenubar.className="small";
- wLogo.src = "logo-small.png";
- }
- else {
- wMenubar.className="big";
- wLogo.src = "logo.png";
- }
- }
- document.onload = init;
- </script>
Advertisement
Add Comment
Please, Sign In to add comment