Allen850413 (Talk | contribs) |
Allen850413 (Talk | contribs) |
||
Line 40: | Line 40: | ||
} | } | ||
} | } | ||
− | + | $(window).on('scroll',function() { | |
+ | if($(window).scrollTop()) | ||
+ | { | ||
+ | $('.container').css('background', '#808080'); | ||
+ | $('nav ul li ul').css('background', '#808080'); | ||
+ | $('nav').css('opacity','1'); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $('.container').css('background', '#000000'); | ||
+ | $('nav ul li ul').css('background', '#000000'); | ||
+ | $('nav').css('opacity','1'); | ||
+ | } | ||
+ | }); | ||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
Revision as of 02:54, 11 July 2018