firefox与IE的onscroll兼容问题
function srollflight(){
var headdiv ;
if(document.getElementById("BC")){
headdiv = document.getElementById("BC");
headdiv.style.top=document.documentElement.scrollTop+160;
}
}
window.onload=srollflight;
window.onscroll=srollflight;
以上js代码在IE中能让div区随滚动条滚动,到了firefox就不行,有什么解决办法?