PageSourceSearch

https://alinmatepackage.com/ScriptResource.axd?d=R-le_8mHXLOg2CZm2…0YzPZh9lEwVZxa5YifWcV8ES8WKsQyo1&t=135ac0e7

js alinmatepackage.com collected 2026-10-05 22:44:44 UTC 5,047 bytes, 136 lines download raw bytes

1// Name:        HTMLEditor.Toolbar_buttons.ImageButton.debug.js
2// Assembly:    AjaxControlToolkit
3// Version:     4.5.7.1005
4// FileVersion: 4.5.7.1005
5Type.registerNamespace("Sys.Extended.UI.HTMLEditor.ToolbarButton");
6
7Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton = function(element) {
8    Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton.initializeBase(this, [element]);
9    
10    this._normalSrc = "";
11    this._hoverSrc = "";
12    this._downSrc = "";
13    this._activeSrc = "";
14    this._downTimer = null;
15}
16
17Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton.prototype = {
18
19    get_normalSrc: function() {
20        return this._normalSrc;
21    },
22    set_normalSrc: function(value) {
23        this._normalSrc = value;
24        var element = this.get_element();
25        if (/none$/.test(element.src)) {
26            element.src = value;
27        }
28    },
29
30    get_hoverSrc: function() {
31        return this._hoverSrc;
32    },
33    set_hoverSrc: function(value) {
34        this._hoverSrc = value;
35    },
36
37    get_downSrc: function() {
38        return this._downSrc;
39    },
40    set_downSrc: function(value) {
41        this._downSrc = value;
42    },
43
44    get_activeSrc: function() {
45        return this._activeSrc;
46    },
47    set_activeSrc: function(value) {
48        this._activeSrc = value;
49    },
50
51    isImage: function() {
52        return true;
53    },
54
55    _onmouseover: function(e) {
56        if (!Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton.callBaseMethod(this, "_onmouseover")) return false;
57        if (this._hoverSrc.length > 0) {
58            this.get_element().src = this._hoverSrc;
59        }
60        return true;
61    },
62
63    _onmouseout: function(e) {
64        var node = this.get_element();
65        if (!Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton.callBaseMethod(this, "_onmouseout")) return false;
66        if (this._hoverSrc.length > 0) {
67            if (Sys.UI.DomElement.containsCssClass(node, this._cssClass + "_mousedown") && this._downSrc.length > 0) {
68                node.src = this._downSrc;
69            } else {
70                if (Sys.UI.DomElement.containsCssClass(node, this._cssClass + "_active") && this._activeSrc.length > 0) {
71                    node.src = this._activeSrc;
72                } else {
73                    node.src = this._normalSrc;
74                }
75            }
76        }
77        return true;
78    },
79
80    _onmousedown: function(e) {
81        if (Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton.callBaseMethod(this, "_onmousedown") === null) return null;
82        if (this._downSrc.length > 0) {
83            this.get_element().src = this._downSrc;
84            this._downTimer = setTimeout(Function.createDelegate(this, this._onmouseup), 1000); // one second delay
85        }
86        return true;
87    },
88
89    _onmouseup: function(e) {
90        var node = this.get_element();
91        if (!Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton.callBaseMethod(this, "_onmouseup")) return false;
92        if (this._downSrc.length > 0) {
93            if (Sys.UI.DomElement.containsCssClass(node, this._cssClass + "_hover") && this._hoverSrc.length > 0) {
94                node.src = this._hoverSrc;
95            } else {
96                if (Sys.UI.DomElement.containsCssClass(node, this._cssClass + "_active") && this._activeSrc.length > 0) {
97                    node.src = this._activeSrc;
98                } else {
99                    node.src = this._normalSrc;
100                }
101            }
102            if (this._downTimer != null) {
103                clearTimeout(this._downTimer);
104                this._downTimer = null;
105            }
106        }
107        return true;
108    },
109
110    setActivity: function(value) {
111        var node = this.get_element();
112        if (this._activeSrc.length > 0) {
113            if (value) {
114                if (!Sys.UI.DomElement.containsCssClass(node, this._cssClass + "_active")) {
115                    node.src = this._activeSrc;
116                }
117            } else {
118                if (Sys.UI.DomElement.containsCssClass(node, this._cssClass + "_active")) {
119                    if (Sys.UI.DomElement.containsCssClass(node, this._cssClass + "_mousedown") && this._downSrc.length > 0) {
120                        node.src = this._downSrc;
121                    } else {
122                        if (Sys.UI.DomElement.containsCssClass(node, this._cssClass + "_hover") && this._hoverSrc.length > 0) {
123                            node.src = this._hoverSrc;
124                        } else {
125                            node.src = this._normalSrc;
126                        }
127                    }
128                }
129            }
130        }
131        Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton.callBaseMethod(this, "setActivity", [value]);
132    }
133}
134
135Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton.registerClass("Sys.Extended.UI.HTMLEditor.ToolbarButton.ImageButton", Sys.Extended.UI.HTMLEditor.ToolbarButton.CommonButton);
136

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.