⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radcombobox.js

📁 Telerik是很大的第三方软件制造商
💻 JS
📖 第 1 页 / 共 2 页
字号:
function RadComboItem(){ this.ComboBox=null; this.ClientID=null; this.Highlighted= false; this.Index=0; this.Enabled=1; this.Selected=0; this.Text=""; this.Value=null; this.O=new Array(); } ; RadComboItem.prototype.Initialize= function (o){for (var I in o){ this[I]=o[I]; }} ; RadComboItem.prototype.A= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<=this.Index; i++){var U=document.getElementById(this.ComboBox.Items[i].ClientID); if (U){totalHeight+=U.offsetHeight; }}document.getElementById(this.ComboBox.ClientID+"\137Drop\x44\x6fwn").scrollTop=totalHeight-document.getElementById(this.ComboBox.ClientID+"_DropD\x6f\x77n").offsetHeight; }} ; RadComboItem.prototype.Z= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<this.Index; i++){var U=document.getElementById(this.ComboBox.Items[i].ClientID); if (U){totalHeight+=U.offsetHeight; }}var scrollTop=document.getElementById(this.ComboBox.ClientID+"_Drop\x44own").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"_DropDown").scrollTop=totalHeight; }}} ; RadComboItem.prototype.Highlight= function (){if (!this.Highlighted && this.Enabled){ this.ComboBox.UnHighlightAll(); if (!this.ComboBox.IsTemplated || this.ComboBox.HighlightTemplatedItems){if (document.getElementById(this.ClientID)){document.getElementById(this.ClientID).className=this.ComboBox.ItemCssClassHover; }} this.Highlighted= true; this.ComboBox.HighlightedItem=this ; }} ; RadComboItem.prototype.UnHighlight= function (){if (this.Highlighted && this.Enabled && document.getElementById(this.ClientID)){document.getElementById(this.ClientID).className=this.ComboBox.ItemCssClass; this.Highlighted= false; this.ComboBox.HighlightedItem=null; }} ; RadComboItem.prototype.Select= function (){ this.ComboBox.SelectedItem=this ; this.ComboBox.z(this ); this.ComboBox.HideDropDown(); this.ComboBox.W(); } ; function RadComboBox(w,V){var v=window[V]; if (v!=null && !v.tagName){v.T(); }if (window.tlrkComboBoxes==null){window.tlrkComboBoxes=new Array(); }tlrkComboBoxes[V]=this ; this.Items=new Array(); this.t= false; this.ID=w; this.ClientID=V; this.S=V; this.DropDownID=V+"_\x44\x72opDown"; this.InputID=V+"\x5fInput"; this.ImageID=V+"\x5fImage"; this.DropDownPlaceholderID=V+"_DropD\x6f\x77nPlac\x65\x68old\x65r"; this.MoreResultsBoxID=V+"\x5f\x4doreRes\x75\x6ctsB\x6f\x78"; this.MoreResultsBoxImageID=V+"_MoreResul\x74\x73BoxI\x6d\x61ge"; this.MoreResultsBoxMessageID=V+"_Mo\x72\x65Result\x73\x42oxMe\x73\163\x61\147e"; this.R=V+"_Head\x65\x72"; this.r=document.getElementById(this.InputID); this.Q=document.getElementById(this.ImageID); this.P=document.getElementById(this.DropDownPlaceholderID); this.N=document.getElementById(this.ClientID+"\137te\x78\x74"); this.n=document.getElementById(this.ClientID+"\x5f\x76alue"); this.M=document.getElementById(this.ClientID+"_index"); this.Enabled= true; this.DropDownVisible= false; this.LoadOnDemandUrl=null; this.PollTimeOut=0; this.HighlightedItem=null; this.SelectedItem=null; this.ItemRequestTimeout=300; this.EnableLoadOnDemand= false; this.AutoPostBack= false; this.ShowMoreResultsBox= false; this.OpenDropDownOnLoad= false; this.m= false; this.MarkFirstMatch= false; this.IsCaseSensitive= false; this.PostBackReference=null; this.LoadingMessage="\x4c\x6f\x61ding..\x2e"; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.L=null; this.RadComboBoxImagePosition="\x52ight"; this.ItemCssClass=null; this.ItemCssClassHover=null; this.ItemCssClassDisabled=null; this.ImageCssClass=null; this.ImageCssClassHover=null; this.InputCssClass=null; this.InputCssClassHover=null; this.LoadingMessageCssClass="\x43omboBox\x4c\x6fading\x4d\x65ss\x61\147\x65"; this.AutoCompleteSeparator=null; this.OnClientSelectedIndexChanging=null; this.OnClientDropDownOpening=null; this.OnClientDropDownClosing=null; this.OnClientItemsRequesting=null; this.OnClientSelectedIndexChanged=null; this.OnClientItemsRequested=null; this.OnClientKeyPressing=null; this.Skin="\x43lassic"; this.HideTimeoutID=0; this.l=0; this.K= false; this.k=null; this.AllowCustomText= false; this.ExpandEffectString=null; this.HighlightTemplatedItems= false; this.CausesValidation= false; this.ClientDataString=null; this.J= false; this.H=-1; this.IsTemplated= false; var comboInstance=this ; this.h= function (){comboInstance.HideOnClick(); } ; if (document.attachEvent){document.attachEvent("\x6fnclick",this.h); }else {document.addEventListener("cli\x63\x6b",this.h, false); }document.getElementById(this.InputID).onblur= function (e){comboInstance.G(e); } ; document.getElementById(this.InputID).setAttribute("autocomp\x6c\x65te","off"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="\x75ndefined"){window.setTimeout( function (){comboInstance.g(document.getElementById(comboInstance.InputID));} ,100); }else {var F= false; if (window.addEventListener){window.addEventListener("\x6coad", function (){comboInstance.g(document.getElementById(comboInstance.InputID)); } , false); F= true; }else {if (!F){ this.g(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("onunload", function (){comboInstance.T(); } ); }else {window.addEventListener("un\x6c\x6fad", function (){comboInstance.T(); } , false); }} ; RadComboBox.prototype.T= function (){tlrkComboBoxes[this.ID]=null; this.Items=null; this.r=null; this.Q=null; this.P=null; this.N=null; this.n=null; this.M=null; this.L=null; this.OnClientSelectedIndexChanging=null; this.OnClientDropDownOpening=null; this.OnClientDropDownClosing=null; this.OnClientItemsRequesting=null; this.OnClientSelectedIndexChanged=null; this.OnClientItemsRequested=null; this.OnClientKeyPressing=null; var comboInstance=this ; if (document.detachEvent){document.detachEvent("oncl\x69ck",this.h); }else {document.removeEventListener("click",this.h, false); }if (window.removeEventListener){window.removeEventListener("load", function (){comboInstance.g(document.getElementById(comboInstance.InputID)); } , false); }var input=document.getElementById(this.InputID); if (input!=null)input.onblur=null; input=null; var f=document.getElementById(this.DropDownPlaceholderID); if (f!=null)f.onselectstart=null; f=null; } ; RadComboBox.prototype.Initialize= function (D,o){ this.d(D); this.C(o); this.B(); this.o0(); } ; RadComboBox.prototype.d= function (D){for (var I in D){ this[I]=D[I]; }} ; RadComboBox.prototype.B= function (){ this.ItemCssClass="\103omboBoxI\x74em_"+this.Skin; this.ItemCssClassHover="\103o\x6d\x62oBoxIt\x65\x6dHove\x72_"+this.Skin; this.ItemCssClassDisabled="ComboB\x6f\x78ItemDi\x73\x61ble\x64\137"+this.Skin; this.ImageCssClass="ComboBox\x49\x6dage_"+this.Skin; this.ImageCssClassHover="C\x6f\x6dboBoxIm\x61\x67eHov\x65\162_"+this.Skin; this.InputCssClass="ComboB\x6f\x78Inpu\x74\x5f"+this.Skin; this.InputCssClassHover="\x43omboBoxInpu\x74\x48over\x5f"+this.Skin; this.LoadingMessageCssClass="ComboBoxLoad\x69\156gM\x65\x73sag\x65\x5f"+this.Skin; } ; RadComboBox.prototype.z= function (item){if (item!=null){ this.O0(item.Text); this.SetValue(item.Value); this.l0(item.Index); }else { this.SetText(""); this.SetValue(""); this.l0("-\x31"); }} ; RadComboBox.prototype.W= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="\x66uncti\x6f\x6e" && !(typeof(Page_ClientValidate)!="function" || Page_ClientValidate())){return; }}eval(this.PostBackReference); }} ; RadComboBox.prototype.G= function (e){var i0=this.SelectedItem; var I0=this.HighlightedItem; if (i0!=null && I0!=null && i0!=I0){ this.z(I0); this.o1(); }if (i0!=null && I0==null && this.AllowCustomText){ this.SetText(this.GetText()); this.W();}} ; RadComboBox.prototype.O1= function (){var l1=document.getElementById(this.S); while (l1.tagName!="\x46ORM"){l1=l1.parentNode; }return l1; } ; RadComboBox.prototype.i1= function (){var f=document.getElementById(this.DropDownPlaceholderID); var I1=f.getElementsByTagName("i\x6e\x70ut"); return I1.length>0; };RadComboBox.prototype.o2= function (){if ((!document.readyState || document.readyState=="comp\x6c\x65te") && (!this.K)){var parentElement=document.body; if (this.i1()){parentElement=this.O1(); }var f=document.getElementById(this.S).getElementsByTagName("\x44IV")[0]; f.parentNode.removeChild(f); f.style.marginLeft="0"; var O2=document.getElementById(this.DropDownPlaceholderID); if (O2){O2.parentNode.removeChild(O2); }if (parentElement.firstChild){parentElement.insertBefore(f,parentElement.firstChild); }else {parentElement.appendChild(f); } this.K= true; this.P=document.getElementById(this.DropDownPlaceholderID); }} ; RadComboBox.prototype.HideOnClick= function (){var comboInstance=this ; this.HideTimeoutID=window.setTimeout( function (){comboInstance.DoHideOnClick(); } ,5); } ; RadComboBox.prototype.DoHideOnClick= function (){if (this.HideTimeoutID){ this.HideDropDown(); }} ; RadComboBox.prototype.ClearHideTimeout= function (){ this.HideTimeoutID=0; } ; RadComboBox.prototype.l2= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var i2=this.AutoCompleteSeparator.charAt(i); var I2=text.lastIndexOf(i2); if (I2>lastIndex){lastIndex=I2; }}return lastIndex; } ; RadComboBox.prototype.O0= function (o3){var O3=-1; var l3=this.GetText(); if (this.AutoCompleteSeparator!=null){O3=this.l2(l3); }var i3=l3.substring(0,O3+1)+o3; this.SetText(i3); } ; RadComboBox.prototype.ClearSelection= function (){ this.z(null); this.SelectedItem=null; this.I3=null; } ; RadComboBox.prototype.C= function (o){for (var i=0; i<o.length; i++){var item=new RadComboItem(); item.ComboBox=this ; item.Index=this.Items.length; item.Initialize(o[i]); this.Items[this.Items.length]=item; }} ; RadComboBox.prototype.o0= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var l3=this.GetText(); var o4=this.FindItemByText(l3); if (o4!=null){ this.SelectedItem=o4; this.SelectedItem.Highlight(); }} this.t= true; if (this.SelectedItem==null && this.H==-1 && this.Items.length>0){ this.SelectedItem=this.Items[0]; this.Items[0].Selected= true; this.SelectedItem.Highlight(); }var comboInstance=this ; if (this.OpenDropDownOnLoad){if (window.attachEvent){window.attachEvent("o\x6e\x6c\x6fad", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("loa\x64", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.O4= function (o,l4){if (!l4){ this.Items.length=0; } this.HighlightedItem=null; this.SelectedItem=null; this.t= false; if (this.Items.length>0){if (this.Items[0].Text==document.getElementById(this.InputID).value){ this.SetValue(this.Items[0].Value); }else { this.SetValue(""); } this.k=this.GetText(); } this.C(o); } ; RadComboBox.prototype.SetText= function (o3){document.getElementById(this.InputID).value=o3; this.N.value=o3; } ; RadComboBox.prototype.GetText= function (){return document.getElementById(this.InputID).value; } ; RadComboBox.prototype.SetValue= function (value){if (value || value==""){ this.n.value=value; }} ; RadComboBox.prototype.GetValue= function (){return this.n.value; } ; RadComboBox.prototype.l0= function (index){ this.M.value=index; } ; RadComboBox.prototype.i4= function (el){var parent=null; var I4=[]; var box; if (el.getBoundingClientRect){box=el.getBoundingClientRect(); var scrollTop=document.documentElement.scrollTop || document.body.scrollTop; var scrollLeft=document.documentElement.scrollLeft || document.body.scrollLeft; var x=box.left+scrollLeft-2; var y=box.top+scrollTop-2; return [x,y]; }else if (document.getBoxObjectFor){box=document.getBoxObjectFor(el); I4=[box.x-2,box.y-2]; }else {I4=[el.offsetLeft,el.offsetTop]; parent=el.offsetParent; if (parent!=el){while (parent){I4[0]+=parent.offsetLeft; I4[1]+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName!="B\x4fDY" && parent.tagName!="\x48TML"){I4[0]-=parent.scrollLeft; I4[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="BODY" && parent.tagName!="\x48\x54\x4dL"){I4[0]-=parent.scrollLeft; I4[1]-=parent.scrollTop; parent=parent.parentNode; }}return I4; } ; RadComboBox.prototype.o5= function (x,y){if (document.readyState && document.readyState!="complete"){return; }var O5=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); var l5=window.opera; if (O5 || l5 || (!document.all)){return; }if (this.L==null){ this.L=document.createElement("I\x46\122\x41\x4dE"); this.L.src="\x6aavas\x63\x72ipt:\x27\x27"; this.L.id=this.ClientID+"_Overlay"; this.L.frameBorder=0; this.L.style.position="\x61bsolute"; this.L.style.visibility="hidden"; this.P.parentNode.insertBefore(this.L,this.P); this.L.style.zIndex=this.P.style.zIndex-1; } this.L.style.left=x; this.L.style.top=y; var i5=this.P.offsetWidth; var I5=this.P.offsetHeight; this.L.style.width=i5+"px"; this.L.style.height=I5+"px"; this.L.style.visibility="\x76\x69sible"; } ; RadComboBox.prototype.o6= function (){var O5=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); var l5=window.opera; if (O5 || l5 || (!document.all)){return; }if (this.L!=null){ this.L.style.visibility="h\x69dden"; }} ; RadComboBox.prototype.O6= function (){for (var i=0; i<tlrkComboBoxes.length; i++){if ((typeof(tlrkComboBoxes[i])!="\x66unction") && (tlrkComboBoxes[i].ClientID!=this.ClientID)){tlrkComboBoxes[i].HideDropDown(); }}} ; RadComboBox.prototype.ShowDropDown= function (){if (this.l6(this.OnClientDropDownOpening,this )== false){return; } this.O6(); this.o2(); var i6; (this.RadComboBoxImagePosition=="Right")?i6=this.r:i6=document.getElementById(this.ImageID); var position=this.i4(i6); var x=position[0]; var y=position[1]+i6.offsetHeight; var I6=document.getElementById(this.S); o7=I6.offsetWidth; if (this.ExpandEffectString!=null && document.all){ this.P.style.filter=this.ExpandEffectString; this.P.filters[0].Apply(); this.P.filters[0].Play(); } this.P.style.position="\x61\x62\x73olute"; this.P.style.left=x+"\x70x"; this.P.style.top=y+"\x70\x78"; this.P.style.width=o7-2+"px"; this.P.style.display="\x62\x6cock"; this.o5(x+"p\x78",y+"\x70x"); if (this.HighlightedItem!=null){ this.HighlightedItem.A(); }if (this.SelectedItem!=null){ this.SelectedItem.A(); } this.ClearHideTimeout(); this.DropDownVisible= true; try {document.getElementById(this.InputID).focus(); }catch (e){} ; if ((this.EnableLoadOnDemand) && (this.Items.length==0)){ this.O7( true ,null); }if (this.SelectedItem!=null){ this.SelectedItem.Highlighted= false; this.SelectedItem.Highlight(); this.SelectedItem.Z(); }} ; RadComboBox.prototype.FindItemByText= function (o3){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Text==o3){return this.Items[i]; }}return null; } ; RadComboBox.prototype.FindItemByValue= function (l7){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value==l7){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.l6(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="\156one"; this.o6(); this.DropDownVisible= false; }} ; RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.i7= function (I7){if (I7){while (I7!=null){if (I7.id && this.o8(I7.id)){return I7; }I7=I7.parentNode; }}return null; } ; RadComboBox.prototype.o8= function (O8){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==O8){return true; }}return false; } ; RadComboBox.prototype.l8= function (item){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==item.id){return this.Items[i]; }}return null; } ; RadComboBox.prototype.i8= function (I8){I8.Highlight(); } ; RadComboBox.prototype.o9= function (I8){I8.UnHighlight(); } ; RadComboBox.prototype.o1= function (eventArgs){var O9=this.HighlightedItem; if (O9!=null){if (this.l6(this.OnClientSelectedIndexChanging,O9,eventArgs)== false){return; }O9.Select(); this.l6(this.OnClientSelectedIndexChanged,O9,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.o1(eventArgs); } ; RadComboBox.prototype.l9= function (index){var i=index; var i9= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){i9= true; break; }}if (i9)return i; return index; } ; RadComboBox.prototype.I9= function (index){var i=index; var i9= false; while (i>0){i=i-1; if (this.Items[i].Enabled){i9= true; break; }}if (i9)return i; return index; } ; RadComboBox.prototype.oa= function (comboInstance,eventArgs){ this.l6(this.OnClientKeyPressing,this,eventArgs); if (eventArgs.keyCode==46){if (!this.EnableLoadOnDemand && !this.AllowCustomText){ this.Oa(eventArgs); }}if (eventArgs.keyCode==40){if (eventArgs.altKey && (!this.DropDownVisible)){ this.ShowDropDown(); return; }var index=-1; if (this.HighlightedItem==null && this.Items.length>0){index=0; }if (this.HighlightedItem!=null){index=this.l9(this.HighlightedItem.Index); }else {index=this.l9(0); }if (index>=0 && this.Items.length>0){if (this.l6(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Highlight(); this.Items[index].A(); this.z(this.Items[index]); this.Oa(eventArgs); }return; }if (eventArgs.keyCode==27 && this.DropDownVisible){ this.HideDropDown(); return; }if (eventArgs.keyCode==38){if (eventArgs.altKey && this.DropDownVisible){ this.HideDropDown(); return; }var index=-1; if (this.HighlightedItem!=null){index=this.I9(this.HighlightedItem.Index); }if (index>=0){if (this.l6(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Z(); this.Items[index].Highlight(); this.z(this.Items[index]); this.Oa(eventArgs); }return; }if ((eventArgs.keyCode==13 || eventArgs.keyCode==9) && this.DropDownVisible){if (eventArgs.keyCode==13){ this.Oa(eventArgs); } this.o1(); return; }if (eventArgs.keyCode==9 && !this.DropDownVisible){return; }if (eventArgs.keyCode==35 || eventArgs.keyCode==36 || eventArgs.keyCode==37 || eventArgs.keyCode==39){return; }if (this.EnableLoadOnDemand && (!eventArgs.altKey) && (!eventArgs.ctrlKey) && (!(eventArgs.keyCode==16))){if (!this.DropDownVisible){ this.ShowDropDown(); } this.la( false ,eventArgs.keyCode); return; }var ia=eventArgs.keyCode; if ((ia<32) || (ia>=33 && ia<=46) || (ia>=112 && ia<=123)){return; }var Ia=this ; window.setTimeout( function (){Ia.ob(); } ,20); } ; RadComboBox.prototype.Ob= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode==13 || (eventArgs.keyCode==32 && (!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.lb= function (s){if (encodeURIComponent){return encodeURIComponent(this.ib(s)); }if (escape){return escape(this.ib(s)); }} ; RadComboBox.prototype.ib= function (text){if (typeof(text)!="numb\x65r"){return text.replace(/\x27/g,"&squot\x65"); }} ; RadComboBox.prototype.Ib= function (oc,text,keyCode){if (!this.m){ this.m= true; var Oc=(text)?text:document.getElementById(this.InputID).value; var lc=this.GetValue(); Oc=Oc.replace(/\x27/g,"\x26squote"); var url=this.LoadOnDemandUrl+"\x26text="+this.lb(Oc); url=url+"\x26comboV\x61\x6cue="+this.lb(lc); url=(oc)?url+"&itemCount="+this.Items.length:url; url=url+"&skin="+this.lb(this.Skin); if (this.ClientDataString!=null){url+="\x26\x63\x6cientD\x61\164\x61\123\x74\162i\x6e\x67="+this.lb(this.ClientDataString); }url=url+"&t\x69\x6deStamp="+encodeURIComponent((new Date()).getTime()); var xmlRequest=null; if (typeof(XMLHttpRequest)!="un\x64\x65fined"){xmlRequest=new XMLHttpRequest(); }if (typeof(ActiveXObject)!="\x75ndefined"){xmlRequest=new ActiveXObject("Microso\x66\x74.X\x4d\114\x48TTP"); }xmlRequest.open("\x47ET",url, true); var ic=this ; xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState!=4)return; ic.Ic(xmlRequest.responseText,oc,Oc,keyCode,xmlRequest.status,url); } ; xmlRequest.send(""); }} ; RadComboBox.prototype.Ic= function (od,oc,Oc,keyCode,status,url){if (status==500){alert("\162\x2ea.d\x2e\x63ombo\x62\x6fx:\x20\x53erv\x65\x72 e\x72\x72or\x20in \x74\150\x65\040\x49tems\x52\x65q\x75\145s\x74ed ev\x65nt \x68andl\x65r, p\x72ess \x6fk t\x6f vie\x77 th\x65 res\x75lt."); document.body.innerHTML=od; return; }if (status==404){alert("r.a.d\x2e\x63ombo\x62\x6fx: L\x6fad On D\x65\x6dand\x20\x50ag\x65 not f\x6fund: "+url); var Od="\x72.a.d.comb\x6f\x62ox: \x4c\x6fad \x4f\x6e De\x6d\x61nd\x20\x50ag\x65 not f\x6f\165n\x64: "+url+"\x3cbr/>"; Od+="Please,\x20\x74ry us\x69\x6eg E\x78\x74ern\x61\x6cCa\x6c\x6cBac\x6bPage t\x6f map t\x6f\040\x74he ex\x61\143t\x20loca\x74\151o\x6e of\x20the \x63allb\x61ckpa\x67e yo\x75 are\x20usi\x6eg.";document.body.innerHTML=Od; return; }eval("var call\x42\x61ckDa\x74\x61 = "+od+"\x3b"); if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var ld=this.Items.length; this.O4(callBackData.Items,oc); if (oc){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"\x5fLoadin\x67\x44iv")); document.getElementById(this.DropDownID).innerHTML+=callBackData.DropDownHtml; if (this.Items[ld+1]!=null){ this.Items[ld+1].A(); }}else {document.getElementById(this.DropDownID).innerHTML=callBackData.DropDownHtml; } this.o5(this.P.style.left,this.P.style.top); this.l6(this.OnClientItemsRequested,this,Oc,oc); this.m= false; var oe=this.FindItemByText(this.GetText()); if (oe!=null){oe.Highlight(); oe.A(); }if (!keyCode)return; if (keyCode<32 || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123)){return; } this.ob(); };RadComboBox.prototype.Oe= function (l3){var O3=-1; if (this.AutoCompleteSeparator!=null){O3=this.l2(l3); }var le=l3.substring(O3+1,l3.length); return le; } ; RadComboBox.prototype.ie= function (Ie,of){if (!this.IsCaseSensitive){return (Ie.toLowerCase()==of.toLowerCase()); }else {return (Ie==of); }} ; RadComboBox.prototype.ob= function (){if (!this.MarkFirstMatch)return; var l3=this.GetText(); var le=this.Oe(l3); if (le.length==0){return; }for (var i=0; i<this.Items.length; i++){var Of=this.Items[i].Text; if (Of.length>=le.length){var If=Of.substring(0,le.length); if (this.ie(If,le)){var O3=-1; if (this.AutoCompleteSeparator!=null){O3=this.l2(l3); }var i3=l3.substring(0,O3+1)+Of; this.SetText(i3); this.SetValue(this.Items[i].Value); this.l0(this.Items[i].Index); if (this.l6(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].A(); var og=O3+le.length+1; var Og=i3.length-og; if (document.all){var lg=document.getElementById(this.InputID).createTextRange(); lg.moveStart("\x63\x68\141\x72\141ct\x65\x72",og); lg.moveEnd("\x63hara\x63\x74er",Og); lg.select(); }else {document.getElementById(this.InputID).setSelectionRange(og,og+Og); }return; }else { this.SetValue(""); this.l0(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.l0("\x2d\x31"); if (!this.AllowCustomText){var ig=l3.substring(0,l3.length-1); if (this.k!=null){ this.SetText(this.k); return; } this.SetText(ig); this.ob(); }} ; RadComboBox.prototype.la= function (l4,keyCode){if (!this.m && (!document.getElementById(this.ClientID+"_Loadi\x6egDiv"))){var comboInstance=this ; if (this.l){window.clearTimeout(this.l); this.l=0; } this.l=window.setTimeout( function (){comboInstance.O7(l4,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.O7= function (l4,keyCode){var Oc=document.getElementById(this.InputID).value; if (Oc=="")Oc= false; if (this.l6(this.OnClientItemsRequesting,this,Oc,l4)== false){return; }if (!this.m){document.getElementById(this.DropDownID).innerHTML="<\x64iv \x69\x64="+this.ClientID+"_LoadingDiv"+"\x20class=\x27"+this.LoadingMessageCssClass+" \047>"+this.LoadingMessage+"</div>"+document.getElementById(this.DropDownID).innerHTML; }var comboInstance=this ; window.setTimeout( function (){comboInstance.Ib(l4,Oc,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,l4){ this.Ib(l4,text,null); } ; RadComboBox.prototype.UnHighlightAll= function (){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Highlighted){ this.Items[i].UnHighlight(); }}} ; RadComboBox.prototype.Ig= function (){document.getElementById(this.InputID).className=this.InputCssClass; var oh=document.getElementById(this.ImageID); if (oh){oh.className=this.ImageCssClass; }} ; RadComboBox.prototype.Oh= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var oh=document.getElementById(this.ImageID); if (oh){oh.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.lh= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="defa\x75lt"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; } ; RadComboBox.prototype.ih= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x68and"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.Ih= function (){ this.UnHighlightAll(); this.la( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.oi= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.Oa= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.l6= function (Oi,a,b,ii){if (!Oi)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=ii; var s=Oi; s=s+"(\x52\x61\x64ComboB\x6f\x78Glo\x62alFirs\x74\x50ara\x6d"; s=s+"\054\x52adComboBo\x78\x47loba\x6c\123e\x63\x6fndP\x61\x72am"; s=s+",RadComboBo\x78\x47loba\x6c\x54hir\x64\x50ara\x6d"; s=s+");"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var I8; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.i7(srcElement); if (item!=null){I8=this.l8(item); }if (!this.Enabled){return; }switch (eventName){case "\x73howdro\x70\x64own": this.oi(eventArgs); this.ShowDropDown(); break; case "hidedro\x70\x64own": this.oi(eventArgs); this.HideDropDown(); break; case "toggledropd\x6f\x77n": this.oi(eventArgs); this.ToggleDropDown(); break; case "mouseover":if (I8!=null)this.i8(I8); break; case "m\x6f\x75seout":if (I8!=null)this.o9(I8); break; case "keypress": this.oa(this,eventArgs); break; case "\x6b\x65ydown": this.Ob(eventArgs); break; case "\x63lick": this.HandleClick(eventArgs); break; case "\x69nputclick": this.oi(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "\x69\x6eputima\x67\x65out": this.Ig(); break; case "inputima\x67\x65hove\x72": this.Oh(); break; case "m\x6f\x72eresult\x73\x69mag\x65\x63lic\x6b": this.oi(eventArgs); this.Ih(); break; case "\x6d\x6freresu\x6c\x74sima\x67\x65ho\x76\x65r": this.ih(); break; case "\x6doreres\x75\x6ctsima\x67\x65out": this.lh(); break; }} ; RadComboBox.prototype.Enable= function (){document.getElementById(this.S).disabled= false; this.Enabled= true; } ; RadComboBox.prototype.Disable= function (){document.getElementById(this.S).disabled= true; this.Enabled= false; this.N.value=this.GetText(); } ; RadComboBox.prototype.g= function (Ii){if (window.opera)return; if (document.compatMode && document.compatMode=="CSS1Com\x70\x61t"){var computedStyle=null; if (Ii.currentStyle){computedStyle=Ii.currentStyle; }else if (document.defaultView && document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(Ii,null); }else {return; }var height=parseInt(computedStyle.height); var width=parseInt(computedStyle.width); var paddingTop=parseInt(computedStyle.paddingTop); var paddingBottom=parseInt(computedStyle.paddingBottom); var paddingLeft=parseInt(computedStyle.paddingLeft); var paddingRight=parseInt(computedStyle.paddingRight); var borderTop=parseInt(computedStyle.borderTopWidth); if (isNaN(borderTop)){borderTop=0; }var borderBottom=parseInt(computedStyle.borderBottomWidth); if (isNaN(borderBottom)){borderBottom=0; }var borderLeft=parseInt(computedStyle.borderLeftWidth); if (isNaN(borderLeft)){borderLeft=0; }var borderRight=parseInt(computedStyle.borderRightWidth); if (isNaN(borderRight)){borderRight=0; }if (!isNaN(height)){Ii.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"\x70\x78"; }if (!isNaN(width)){Ii.style.width=width-paddingLeft-paddingRight-borderLeft-borderRight+"\x70\x78"; }}} ; function rcbDispatcher(V,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[V]; }catch (e){}if (typeof(comboInstance)=="undefined" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="undefined"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(oj,Oj){var lj=(navigator.appName=="Microsoft\x20\x49nter\x6e\x65t E\x78plorer") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); var O5=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); if (lj || O5){document.write("\x3c"+"link"+" \x72\x65l=\047styles\x68\x65et\x27\040t\x79\x70e=\x27\x74ex\x74/cs\x73\047\x20\x68re\x66=\047"+Oj+"\x27>"); }else {var ij=document.createElement("\x4cINK"); ij.rel="\x73\x74yleshee\x74"; ij.type="te\x78\x74/css"; ij.href=Oj; document.getElementById(oj+"\x53tyleSheetH\x6f\x6cder").appendChild(ij); }} ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -