zoukankan      html  css  js  c++  java
  • finereport 内容滚动 滚动条隐藏

    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)
    

      

    纸上得来终觉浅,绝知此事要躬行。
  • 相关阅读:
    存储过程
    输入http://localhost/,apache出现You don't have permission to access/on this server.的提示,如何解决?
    搭建内网的NTP时间服务器
    cobbler自动化安装系统
    Linux三剑客之awk最佳实践
    ansible学习笔记
    2021.05.07 多线程之可重入锁
    2021.05.08 easyExcel简单读写
    2021.05.03 Java常用文件路径
    2021.05.04 二维码生成与解析
  • 原文地址:https://www.cnblogs.com/cbugs/p/15251473.html
Copyright © 2011-2022 走看看