var nt = !1; $(window).bind("scroll", function() { var st = $(document).scrolltop();//往下滚的高度 nt = nt ? nt: $("#head").offset().top; // document.title=st; var sel=$("#head"); if (nt < st) { sel.addclass("headfixed"); } else { sel.removeclass("headfixed"); } }); $('.dropdown-submenu').mouseover(function() { $("#li-cp").css('background-color','#ffffff'); $("#li-cp a").css('background-color','#ffffff'); }); window.addeventlistener('load',function(){ var col_link = document.queryselectorall('.col-sm-5 > a'); for(var i=0; i' } })(i)); } });