function checkscrollSlide(){
var oparent=document.getElementById("main");
var oboxs= getClassObj(oparent,"box");
var lastboxH=oboxs[oboxs.length-1].offsetTop+Math.floor(oboxs[oboxs.length-1].offsetHeight/2);
var myscroll=document.body.scrollTop||document.documentElement.scrollTop;
var height=document.body.clientHeight||document.documentElement.clientHeight;
console.log(myscroll);
}
没有提示错误,浏览器
用chorme然后按F12 然后看有没有错误显示