bug_x

导航

 
setTimeout(function () {
    $("div[widgetname=REPORT3_C]").find("#frozen-center").css('overflow-x', 'hidden').style.overflow='visible';
    $("div[widgetname=REPORT3_C]").find("#frozen-center").css('overflow-y', 'hidden').style.overflow='visible';
    $("div[widgetname=REPORT3_C]").find("#frozen-north").css('overflow-x', 'hidden').style.overflow='visible';
    $("div[widgetname=REPORT3_C]").find("#frozen-north").css('overflow-y', 'hidden').style.overflow='visible';
    $("div[widgetname=REPORT3_C]").find(".reportContent").css('overflow-y', 'hidden').style.overflow='visible';
    $("div[widgetname=REPORT3_C]").find(".reportContent").css('overflow-x', 'hidden').style.overflow='visible';
}, 500);

// ::-webkit-scrollbar {
//     display: none;
// }

window.flag = true;
setTimeout(function () {
    document.getElementById("frozen-center").style.overflow="hidden";
  document.getElementById("frozen-north").style.overflow="hidden";
    $("#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)

  

posted on 2021-09-10 15:24  bug_x  阅读(949)  评论(0编辑  收藏  举报