📄 radbutton.js
字号:
if (typeof(window.RadToolbarButtonNamespace)=="\x75ndefined"){window.RadToolbarButtonNamespace=new Object(); }function RadToolbarButton(ClientID,O){ this.ClientID=ClientID; this.O=O; this.o=document.getElementById(this.ClientID); this.I=document.getElementById(this.O); this.A=0; this.ButtonGroup=""; var U=this ; this.Z= function (e){U.OnMouseOver(e); } ; this.z= function (e){U.OnMouseOut(e); } ; this.W= function (e){U.w(e); } ; this.V= function (e){U.v(e); } ; this.T(this.o,"mouseo\x76\x65r",this.Z); this.T(this.o,"mouseo\x75\x74",this.z); this.T(this.o,"\155\x6f\x75sedo\x77\x6e",this.V); this.T(this.o,"click",this.W); }RadToolbarButton.prototype.Start= function (){ this.t(); } ; RadToolbarButton.prototype.T= function (S,R,r){try {if (document.all){S.attachEvent("\x6fn"+R,r); }else {S.addEventListener(R,r, true); }}catch (Q){}} ; RadToolbarButton.prototype.P= function (e){if (this.IsToggle){ this.N(); }else { this.t(); } this.n.M(this,e); };RadToolbarButton.prototype.m= function (e){if (this.IsToggle && this.Toggled){ this.L("ho\x76er_toggle\x64", true); }else { this.L("hover", true); } this.n.l(this,e); };RadToolbarButton.prototype.K= function (e){ this.L("n\x6f\x72mal", true); this.t(); this.n.k(this,e); };RadToolbarButton.prototype.J= function (e){ this.L("moused\x6f\x77n"); this.n.H(this,e); };RadToolbarButton.prototype.v= function (e){if (!this.Enabled){return; } this.J(e); };RadToolbarButton.prototype.OnMouseOver= function (e){if (!this.Enabled){return; }if (!this.h){ this.m(e); this.h= true; }};RadToolbarButton.prototype.OnMouseOut= function (e){if (!this.Enabled){return; }var G=RadToolbarButtonNamespace.g(e); var F=RadToolbarButtonNamespace.f(G,this.o); if (!F){ this.K(e); this.h= false; }};RadToolbarButton.prototype.w= function (e){if (!this.Enabled){return; } this.P(e); };RadToolbarButtonNamespace.IsIE= function (){if (document.all && !window.opera){return true; }else {return false; }};RadToolbarButtonNamespace.f= function (D,d){if (!D || !d){return false; }var C=D; while (((typeof(C)!="\x75\x6e\x64efine\x64") && (C!=d)) && C.nodeName!="\x42ODY" && (C.parentNode!=null)){C=C.parentNode; }if (C==d){return true; }return false; };RadToolbarButtonNamespace.g= function (c){if (null==c){return null; }if (c.toElement){return c.toElement; }else if (c.B){return c.B; }else {return null; }};RadToolbarButton.prototype.o0= function (){var O0=this.CommandName+","+(this.Enabled?"\x31": "\x30")+","+(this.Hidden?"1": "\060")+","+(this.Toggled?"1": "0"); return O0; };RadToolbarButton.prototype.t= function (){if (this.Hidden){ this.o.style.display="none"; }else { this.o.style.display="blo\x63\x6b"; }if (this.IsToggle && this.Toggled){ this.L("\x74oggled"); }else { this.L("\x6e\x6frmal"); }if (!this.Enabled){ this.L("\x64\x69sabled"); }};RadToolbarButton.prototype.L= function (which,l0){l0=l0 && RadToolbarButtonNamespace.IsIE() && window[this.O].UseFadeEffect; if (l0){ this.o.style.filter="\x70rogid:DX\x49\x6dage\x54\x72an\x73form.Mi\x63\162\x6f\x73of\x74.Fad\x65(Over\x6c\141p\x3d\061\x2e00,Du\x72ation\x3d0.3)"; this.o.filters[0].Apply(); }if (this.IsToggle){if (this.DisplayType.toLowerCase()=="textimag\x65" || this.DisplayType.toLowerCase()=="\x74extonly"){ this.o["\x63lassN\x61\x6de"]=this.Skin+"_radtbutto\x6e\x5ftext\x5f"+which; }else { this.o["\x63\x6cassNa\x6d\x65"]=this.Skin+"_radtbutton\x5f"+which; }}else {if (this.DisplayType.toLowerCase()=="te\x78\x74image" || this.DisplayType.toLowerCase()=="\x74extonl\x79"){ this.o["\x63lassN\x61\x6de"]=this.Skin+"_\x72\x61dbutto\x6e\x5ftext\x5f"+which; }else { this.o["className"]=this.Skin+"\x5fradbutto\x6e\x5f"+which; }}if (l0){ this.o.filters[0].Play(); }};RadToolbarButton.prototype.N= function (){if (this.ButtonGroup!=""){ this.n.i0(this ); }else { this.ToggleButton(!this.Toggled); }};RadToolbarButton.prototype.ToggleButton= function (I0){ this.Toggled=I0; this.t(); this.n.o1(this,I0); };RadToolbarButton.prototype.DisableButton= function (){ this.Enabled= false; this.o.setAttribute("\x64isab\x6c\x65d", true); this.t(); };RadToolbarButton.prototype.EnableButton= function (){ this.Enabled= true; this.o.setAttribute("\x64isabl\x65\x64", false); this.t(); };RadToolbarButton.prototype.HideButton= function (){ this.Hidden= true; this.t(); };RadToolbarButton.prototype.ShowButton= function (){ this.Hidden= false; this.t(); };
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -