setTimeout(function() {
$("div[widgetname=REPORT11]").find("#frozen-center").css('overflow-x', 'hidden');
$("div[widgetname=REPORT11]").find("#frozen-center").css('overflow-y', 'hidden');
$("div[widgetname=REPORT11]").find("#frozen-north").css('overflow-x', 'hidden');
$("div[widgetname=REPORT11]").find("#frozen-north").css('overflow-y', 'hidden');
$("div[widgetname=REPORT11]").find(".reportContent").css('overflow-y', 'hidden');
$("div[widgetname=REPORT11]").find(".reportContent").css('overflow-x', 'hidden');
}, 500);
window.flag2 = true;
setTimeout(function() {
$("#frozen-center").mouseover(function() {
window.flag2 = false;
})
$("#frozen-center").mouseleave(function() {
window.flag2 = true;
})
var old = -1;
var interval = setInterval(function() {
if (window.flag2) {
currentpos = $("div[widgetname=REPORT11]").find("#frozen-center")[0].scrollTop;
if (currentpos == old) {
$("div[widgetname=REPORT11]").find("#frozen-center")[0].scrollTop = 0;
} else {
old = currentpos;
$("div[widgetname=REPORT11]").find("#frozen-center")[0].scrollTop = currentpos + 1.5;
}
}
}, 50);
}, 1000)
冻结这两行就可以
没问题啊