ClassLibraryWeiBao/IZWebFileManager/resources/FileView.js

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

FileView = function (ClientID, ControllerID, RegularItemStyle, SelectedItemStyle, EditTextBoxStyle) {
    this.ClientID = ClientID;
    this.ControllerID = ControllerID;
    this._controller = eval('WFM_' + ControllerID);
    this.RegularItemStyle = RegularItemStyle;
    this.SelectedItemStyle = SelectedItemStyle;
    this.EditTextBoxStyle = EditTextBoxStyle;
    this.Element = WebForm_GetElementById(this.ClientID);
    this.Focuser = WebForm_GetElementById(this.ClientID + '_Focus');
    this.Address = WebForm_GetElementById(this.ClientID + '_Address');
    this.AddressGo = WebForm_GetElementById(this.ClientID + '_Address0');
    this.SearchBox = WebForm_GetElementById(this.ClientID + '_Search');
    this.SearchBoxGo = WebForm_GetElementById(this.ClientID + '_Search0');
    this.SearchBoxClear = WebForm_GetElementById(this.ClientID + '_Search1');
    this.SearchBoxWatermark = WebForm_GetElementById(this.ClientID + '_SearchWatermark');
    this.SelectedItems = new Array();
    this.HitInfo = 'FileView';
    this.InProcess = false;
    var This = this;

    this.Element.onselectstart = function (e) {
        return false;
    }

    this.Element.onscroll = function (e) {
        eval('WFM_' + ControllerID + '.HideTextBox()');
        var top = '' + WebForm_GetElementById(ClientID).scrollTop + 'px'
        var left = '' + WebForm_GetElementById(ClientID).scrollLeft + 'px'
        var tHeads = [WebForm_GetElementById(ClientID + "_Thead_Name"),
            WebForm_GetElementById(ClientID + "_Thead_Size"),
            WebForm_GetElementById(ClientID + "_Thead_Type"),
            WebForm_GetElementById(ClientID + "_Thead_Modified"),
            WebForm_GetElementById(ClientID + "_Thead_Folder")];
        for (var i = 0; i < tHeads.length; i++) {
            (function (tHead) {
                if (tHead) {
                    tHead.style.position = 'relative';
                    tHead.style.zIndex = 10;
                    tHead.style.top = top;
                    tHead.style.left = '-1px';
                    tHead.style.left = '0px';
                }
            })(tHeads[i]);
        }
    }

    this.Element.oncontextmenu = function (e) {
        var func = This.GetShowContextMenuFunc();
        if (func) {
            if (e == null) var e = event;
            This.ShowContextMenu(func, e);
            This.HitInfo = 'FileView';
            e.cancelBubble = true;
            return false;
        }
    }

    if (this.Address) {
        this.Address.onkeydown = function (e) {
            if (e == null) var e = event;
后面还有 484 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。