图表联动,通过点击费用基本情况的每个柱子,右边费用明细表显示不同费用类型不同状态的信息,当前表单对象设置如下图,数据表如下图,数据集如下图,点击柱子右边表跟着改变,但是会出现白色下滑框,怎么去掉呢,报表块js如下: setTimeout(function() { //隐藏报表块report1的滚动条 $("div[widgetname=REPORT1]").find(".frozen-north")[0].style.overflow = "hidden"; $("div[widgetname=REPORT1]").find(".frozen-center")[0].style.overflow = "hidden"; }, 1000); window.flag2 = true; //鼠标悬停,滚动停止 setTimeout(function() { $("div[widgetname=REPORT1]").find(".frozen-center").mouseover(function() { window.flag2 = false; }); //鼠标离开,继续滚动 $("div[widgetname=REPORT1]").find(".frozen-center").mouseleave(function() { window.flag2 = true; }); var old = -1; var interval = setInterval(function() { if(window.flag2) { currentpos2 = $("div[widgetname=REPORT1]").find(".frozen-center")[0].scrollTop; if(currentpos2 == old) { $("div[widgetname=REPORT1]").find(".frozen-center")[0].scrollTop = 0; } else { old = currentpos2; //以25ms的速度每次滚动1.5PX $("div[widgetname=REPORT1]").find(".frozen-center")[0].scrollTop = currentpos2 + 1.5; } } }, 25); }, 1000) |