FR10.0.0 Build#persist-2019.02.28.10.47.12.502 决策报表 JS: setTimeout(function(){ $("div[widgetname=REPORT3]").find("#frozen-north")[0].style.overflow="hidden"; $("div[widgetname=REPORT3]").find("#frozen-center")[0].style.overflow="hidden"; },800); //隐藏报表块report3的滚动条 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=$("#frozen-center")[0].scrollTop; if (currentpos==old){ $("#frozen-center")[0].scrollTop=0; } else { old=currentpos; $("#frozen-center")[0].scrollTop=currentpos+1.5; } } },100); //以25ms的速度每次滚动3.5PX },1000) var form = this.options.form; setInterval(function() { form.getWidgetByName('report3').gotoPage(1,"{}",true); setTimeout(function(){ $("div[widgetname=REPORT3]").find("#frozen-north")[0].style.overflow="hidden"; $("div[widgetname=REPORT3]").find("#frozen-center")[0].style.overflow="hidden"; },1100); //隐藏报表块report3的滚动条 }, 300000); //刷新报表块report3 300s刷新一次 之前试过将$("#frozen-center")替换为$(".frozen-center") 貌似没有达到效果 |