Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function __init__(){
- if(typeof document.body != 'undefined'){
- document.body.onload = function(){
- var 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";
- }
- }
- };
- }else{
- setTimeout(__init__,10);
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement