Fenster wrote: » Where is the script located within the top-to-bottom of the generated HTML page? How is it being input? What errors, if any, did debugger tools turn up?
off.the.walls wrote: » After messing about got this working with jQuery jQuery(window).scroll(function() { if( jQuery(window).scrollTop() > 850 ) { jQuery("#fixed").addClass("fade"); } else { jQuery("#fixed").removeClass("fade"); } });
.fade, .fade:hover { transition: background-color .3s ease-in-out; -moz-transition: background-color .3s ease-in-out; -webkit-transition: background-color .3s ease-in-out; -o-transition: background-color .3s ease-in-out; } .fade { background: #000; } .fade:hover { background: #fff; }