我在报表块里设置了滚动,如下 setTimeout(function() { //隐藏报表块report0_c的滚动条(此报表块名为report0_c,根据具体情况修改) $("div[widgetname=REPORT0]").find(".frozen-north")[0].style.overflow = "hidden"; $("div[widgetname=REPORT0]").find(".frozen-center")[0].style.overflow = "hidden"; }, 1000); window.flag = true; //鼠标悬停,滚动停止 setTimeout(function() { $(".frozen-center").mouseover(function() { window.flag = false; }); //鼠标离开,继续滚动 $(".frozen-center").mouseleave(function() { window.flag = true; }); var old = -1; var interval = setInterval(function() { if(window.flag) { currentpos = $("div[widgetname=REPORT0]").find(".frozen-center")[0].scrollTop; if(currentpos == old) { $("div[widgetname=REPORT0]").find(".frozen-center")[0].scrollTop = 0; } else { old = currentpos; //以25ms的速度每次滚动1.5PX $("div[widgetname=REPORT0]").find(".frozen-center")[0].scrollTop = currentpos + 1.5; } } }, 25); }, 1000); 每30s刷新一次报表块,但是运行到大屏电视上之后,总是滚着滚着就不滚动了,请问大家遇到过这个问题吗,而且不一定是哪一个停止滚动(一共有三个) |