例:统战滚动条位置随高度变化 // 答题卡位置随滚动条变化 window.onscroll = function(){ var a = document.documentElement.scrollTop || document.body.scrollTop;//滚动条y轴上的距离 var b = document.documentElement.clientHeight || document.body.clientHeight;//可视区域的高度 var c = document.docum
//滚动动画 windowAddMouseWheel(); function windowAddMouseWheel() { var scrollFunc = function (e) { e = e || window.event; if (e.wheelDelta) { //判断浏览器IE,谷歌滑轮事件 if (e.wheelDelta > 0) { //当滑轮向上滚动时 $("#my_top").slideDown("slow"); $("#s