setTimeout(function(){ $("div[widgetname=REPORT6]").find("#frozen-north")[0].style.overflow="hidden"; $("div[widgetname=REPORT6]").find("#frozen-center")[0].style.overflow="hidden"; },100); 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; } } },40); },3000) 想要在决策报表里让report6的内容滚动,可是现在没效果,不会滚动,帮忙看看哪里有问题,谢谢了! |