📄 radeditordocking.js
字号:
RadEditorNamespace.O8g= {l8g:null,i8g: [],I8g: [],o8h:function (l6,O8h,l8h,i8h,I8h,o8i){if (!l6)return; this.O8i(l6,(null==O8h? true :O8h),(null==l8h? true :l8h),i8h,I8h,o8i); this.l8i(l6); } ,l8i:function (i8i){if (i8i.I8i)return; var o8j; var O8j=i8i.getAttribute("docking\x7aone"); if (O8j){o8j=document.getElementById(O8j); }else if (i8i.parentNode.getAttribute("docking")){o8j=i8i.parentNode; }if (o8j && typeof(o8j.l8j)=="\146\x75\156cti\x6fn"){var i8j=parseInt(i8i.getAttribute("dockingorde\x72")); if (isNaN(i8j)){i8j=null; }o8j.l8j(i8i,i8j); }else if (i8i.parentNode!=document.body){if ("\x63omplete"==document.readyState){i8i.parentNode.removeChild(i8i); document.body.appendChild(i8i); }if (i8i.I8j){i8i.I8j(); }}} ,o8k: false ,O8k:function (l8k){if (l8k){var i8k=this.I8k(); if (i8k){i8k.src=l8k; }}if (this.o8k){return; }RadEditorNamespace.Utils.I1o(document,"onmouse\x6d\x6fve",RadEditorNamespace.O8g.o8l); RadEditorNamespace.Utils.I1o(document,"onkeyd\x6f\x77n",RadEditorNamespace.O8g.O8l); this.o8k= true; }} ; RadEditorNamespace.O8g.o8l= function (e){if (!RadEditorNamespace.O8g || !RadEditorNamespace.O8g.l8l)return; if (RadEditorNamespace.O8g.l8l.i8l)return; if (!e){e=window.event; }RadEditorNamespace.O8g.l8l.I8l(e); if (RadEditorNamespace.O8g.l8l.o8m()){if (null==RadEditorNamespace.O8g.l8l.I8i || RadEditorNamespace.O8g.l8l.O8m){RadEditorNamespace.O8g.l8g=null; var o8j; var l8m=RadEditorNamespace.O8g.i8m; for (var i=0; i<l8m.length; i++){o8j=l8m[i]; if (o8j.HitTest(RadEditorNamespace.O8g.l8l,null==RadEditorNamespace.O8g.l8g,e)){if (!RadEditorNamespace.O8g.l8g){RadEditorNamespace.O8g.l8g=o8j; }}}}else if (!RadEditorNamespace.O8g.l8l.O8m){RadEditorNamespace.O8g.l8l.I8m(e); }}return RadEditorNamespace.Utils.O66(e); } ; RadEditorNamespace.O8g.O8l= function (e){if (!RadEditorNamespace.O8g.l8l)return; if (!e){e=window.event; }if (27==e.keyCode){if (l8g){RadEditorNamespace.O8g.l8g.HitTest(RadEditorNamespace.O8g.l8l, false ,e); RadEditorNamespace.O8g.l8g=null; }RadEditorNamespace.O8g.l8l.o8n(e); }} ;;RadEditorNamespace.O8g.O8n= function (o8,l8n,i8n,I8n,o8o,O8o,l8o){var doc=document; var i1x=doc.createElement("table"); i1x.border=0; i1x.cellSpacing=0; i1x.cellPadding=0; i1x.setAttribute("unselectabl\x65","on"); i1x.setAttribute("dockable","all"); var o1y=i1x.insertRow(-1); var l1y=o1y.insertCell(-1); var i8o=doc.createElement("\x73pan"); i8o.className="\x52adAutoD\x6f\x63kBut\x74\x6fn"; i8o.innerHTML="\x26\x6ebsp;&n\x62\x73p;&\x6e\x62sp;"; i8o.setAttribute("\x61utoDock","true"); l1y.appendChild(i8o); l1y.innerHTML+=(l8o?"\x26nbsp;"+l8o: ""); l1y.colSpan=2; l1y.setAttribute("\x6e\x6fWrap","\x74rue"); l1y.setAttribute("tit\x6c\x65Grip","\141\x75\x74ohide"); l1y.className="\x52\x61dETitle\x47\x72ip"; l1y.parentNode.style.display="\x6e\x6fne"; var o1y=i1x.insertRow(-1); l1y=o1y.insertCell(-1); l1y.innerHTML="&n\x62\x73p;"; l1y.colSpan=2; l1y.setAttribute("to\x70\x53ideGrip","autohide"); l1y.className="RadESideG\x72\x69pVer\x74\x69cal"; o1y=i1x.insertRow(-1); l1y=o1y.insertCell(-1); l1y.innerHTML=" &\x6e\x62sp;&\x6e\x62sp;"; l1y.setAttribute("\x6ceftSid\x65\x47rip","autohid\x65"); l1y.className="RadESideGri\x70\x48oriz\x6f\x6etal"; l1y=o1y.insertCell(-1); l1y.appendChild(o8); i1x.I8o=i8n; i1x.o8p=I8n; i1x.O8p=o8o; i1x.l8p=O8o; var i8p=document.all?"inline": ""; i1x.setAttribute("\x64i\x73\x70lay",i8p); if (document.all)i1x.style.display="\x69nline"; else i1x.setAttribute("\x73tyle","fl\x6f\x61t:left"); return i1x; } ; RadEditorNamespace.O8g.I8p= function (){try {var o8q=RadEditorNamespace.O8g.O8q.length; for (var I7r=0; I7r<o8q; I7r++){var Z=RadEditorNamespace.O8g.O8q[I7r]; Z.I8i=null; Z.l8q=null; var i8q=RadEditorNamespace.Utils.I8q(Z,"\x61\x75\x74odock", true); for (var i=0; i<i8q.length; i++){i8q[i].o8r=null; i8q[i].onclick=null; }var O8r=[Z.rows[0].cells[0],Z.rows[1].cells[0],Z.rows[2].cells[0]]; for (var i=0; i<O8r.length; i++){l8r=O8r[i]; if (l8r){l8r.style.display=""; l8r.parentNode.deleteCell(l8r); }}Z.onmousemove=null; Z.onmouseout=null; Z.onmousedown=null; Z.i8r=null; Z.I8r=null; Z.T=null; Z.I8o=null; Z.o8p=null; Z.O8p=null; Z.l8p=null; Z.o8s=null; Z.o8n=null; Z.i1l=null; Z.O8s=null; Z.l8s=null; Z.I11=null; Z.i8s=null; Z.I8s=null; Z.o8t=null; Z.Initialize=null; Z.O8t=null; Z.o8m=null; Z.l8t=null; Z.i8t=null; Z.IsVisible=null; Z.I8t=null; Z.o8u=null; Z.O8u=null; Z.l8u=null; Z.i8u=null; Z.I8u=null; Z.o8v=null; Z.SetPosition=null; Z.SetSize=null; Z.O8v=null; Z.l8v=null; Z.I8j=null; Z.i8v=null; Z.I8m=null; Z.I8v=null; }RadEditorNamespace.O8g.O8q=null; }catch (e){}} ; RadEditorNamespace.O8g.O8q=[]; RadEditorNamespace.O8g.O8i= function (Z,O8h,l8h,i8h,I8h,o8i){if (!Z || Z.I8m)return; this.o8w(Z,O8h,l8h,i8h,( true ==o8i),o8i); RadEditorNamespace.Utils.w(Z,RadEditorNamespace.O8g.O8w); Z.O8m=O8h; if (!Z.o8p){var I6=Z.getAttribute("render\x56ertica\x6c"); Z.o8p=(I6?I6:RadEditorNamespace.O8g.o8p); }if (!Z.I8o){var I6=Z.getAttribute("\x72enderHori\x7a\157\x6e\164al"); Z.I8o=(I6?I6:RadEditorNamespace.O8g.I8o); }Z.I8i=null; if (Z.Initialize){Z.Initialize(); }var l8w=RadEditorNamespace.O8g.O8q; l8w[l8w.length]=Z; } ; RadEditorNamespace.O8g.O8w= {i8w:null,I8w:null,O8m: true ,l8u:function (e){if (this.O8m){ this.I8m(e); }if (RadEditorNamespace.O8g.l8g){RadEditorNamespace.O8g.l8g.l8j(this ); RadEditorNamespace.O8g.l8g=null; }else {if (this.o8x)this.o8x(); }} ,o8s:function (o8j){var O8x=this.getAttribute("\x64\x6f\x63kable"); if ("string"==typeof(O8x)){O8x=O8x.toLowerCase(); }if ("\x61\x6cl"==O8x){return true; }else {return (O8x==o8j.l8x.toLowerCase()); }} ,I8u:function (){if (this.I8j && !this.O8t()){ this.I8j(); }} ,i8x:function (){ this.l8q=this.I8i; this.I8x= false; if (document.all && "\x6eone"!=this.style.display){ this.style.display="inlin\x65"; }if (this.o8t){ this.o8t(); } this.l8v(this.T, false); this.l8v(this.i8r,!this.o8y); this.l8v(this.I8r,this.o8y); this.l8s(); if (this.i8w){ this.i8w(); }} ,I8m:function (e){if (!this.I8i)return; this.I8i=null; this.I8x= true; this.parentNode.removeChild(this ); this.style.position="abso\x6c\x75te"; this.l8v(this.T, true); this.l8v(this.i8r, false); this.l8v(this.I8r, false); document.body.appendChild(this ); this.o8v(); if (this.I8j){ this.I8j(); }if (this.I8w){ this.I8w(); }} ,i1l:function (){if (!this.l8q)return; this.l8q.l8j(this ); } ,O8t:function (){return (null!=this.I8i); } ,l8s:function (){if (null!=this.I8i && RadEditorNamespace.Utils.o66(this.I8i.l8x,"\x76\x65rt") && null!=this.o8p){if (this.o8y)return; try {if (this.I8r)this.I8r.style.display=""; if (this.i8r)this.i8r.style.display="n\x6f\x6ee"; this.className=this.l8p; if (typeof(this.o8p)=="\x66\x75nctio\x6e"){ this.o8p(); }else if (typeof(this.o8p)=="st\x72\x69ng"){eval(this.o8p); }}catch (ex){} this.o8y= true; }else if (this.o8y && null!=this.I8o){try {if (this.I8r)this.I8r.style.display="none"; if (this.i8r)this.i8r.style.display=""; this.className=this.O8p; if (typeof(this.I8o)=="\x66unctio\x6e"){ this.I8o(); }else if (typeof(this.I8o)=="\x73tring"){eval(this.I8o); }}catch (ex){} this.o8y= false; }} ,i8s:function (e){var source=RadEditorNamespace.Utils.O67(e); return (null!=source && (null!=source.getAttribute("\147\x72ip") || null!=source.getAttribute("\x74itlegri\x70") || null!=source.getAttribute("\164op\x73\x69degri\x70") || null!=source.getAttribute("\x6c\145fts\x69\x64egri\x70"))); } ,Initialize:function (){var i8q=RadEditorNamespace.Utils.I8q(this,"lef\x74\123id\x65\x47rip", true); if (i8q.length>0){ this.i8r=i8q[0]; this.i8r.O8y=(i8q[0].getAttribute("\x6ceftS\x69\x64eGri\x70").toLowerCase()=="visible"); }i8q=RadEditorNamespace.Utils.I8q(this,"topSi\x64\x65Grip", true); if (i8q.length>0){ this.I8r=i8q[0]; this.I8r.O8y=(i8q[0].getAttribute("top\x53\x69deGrip").toLowerCase()=="\x76isible"); }i8q=RadEditorNamespace.Utils.I8q(this,"titleGrip", true); if (i8q.length>0){ this.T=i8q[0]; var l8y=(i8q[0].getAttribute("\164\x69\x74leGr\x69\x70").toLowerCase()=="visibl\x65"); if (this.T.tagName=="TD" || this.T.tagName=="\x54H"){ this.T=this.T.parentNode; } this.T.O8y=l8y; } this.l8v(this.T, true); this.l8v(this.i8r, false); this.l8v(this.I8r, false); i8q=RadEditorNamespace.Utils.I8q(this,"\x61utodock", true); for (var i=0; i<i8q.length; i++){i8q[i].o8r=this ; i8q[i].onclick= function (){ this.o8r.i1l(); } ; }} ,l8v:function (i8y,i40){if (i8y && !i8y.O8y){i8y.style.display=i40?"": "\x6eone"; }}} ;;RadEditorNamespace.O8g.l65= function (left,top,width,height){ this.left=(null!=left?left: 0); this.top=(null!=top?top: 0); this.width=(null!=width?width: 0); this.height=(null!=height?height: 0); this.right=left+width; this.bottom=top+height; };RadEditorNamespace.O8g.l65.prototype.v= function (){return new RadEditorNamespace.O8g.l65(this.left,this.top,this.width,this.height); } ; RadEditorNamespace.O8g.l65.prototype.I8y= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; RadEditorNamespace.O8g.l65.prototype.o8z= function (O8z){if (null==O8z)return false; if (this ==O8z)return true; return (O8z.left<this.right && O8z.top<this.bottom && O8z.right>this.left && O8z.bottom>this.top); } ; RadEditorNamespace.O8g.l65.prototype.ToString= function (){return "lef\x74:"+this.left+" "+"righ\x74\x3a"+this.right+" "+"\164\x6f\x70:"+this.top+"\x20"+"bottom\x3a"+this.bottom+"\x20"+"\x28"+this.width+"\x20x "+this.height+"\x29"; } ; RadEditorNamespace.O8g.l65.prototype.l8z= function (O8z){if (null==O8z)return false; if (this ==O8z)return this.v(); if (!this.o8z(O8z))return new RadEditorNamespace.O8g.l65(); var left=Math.max(this.left,O8z.left); var top=Math.max(this.top,O8z.top); var right=Math.min(this.right,O8z.right); var bottom=Math.min(this.bottom,O8z.bottom); return new RadEditorNamespace.O8g.l65(left,right,right-left,bottom-top); } ; RadEditorNamespace.O8g.i8z= function (l6){if (!l6){l6=this ; }var left=0; var top=0; var width=l6.offsetWidth; var height=l6.offsetHeight; while (l6.offsetParent){left+=l6.offsetLeft; top+=l6.offsetTop; l6=l6.offsetParent; }if (l6.x)left=l6.x; if (l6.y)top=l6.y; left=RadEditorNamespace.Utils.O65(left,0); top=RadEditorNamespace.Utils.O65(top,0); width=RadEditorNamespace.Utils.O65(width,0); height=RadEditorNamespace.Utils.O65(height,0); return new RadEditorNamespace.O8g.l65(left,top,width,height); };RadEditorNamespace.O8g.I8z= function (){if (document.documentElement && document.documentElement.scrollTop){return document.documentElement.scrollTop; }else {return document.body.scrollTop; }} ; RadEditorNamespace.O8g.o90= function (){if (document.documentElement && document.documentElement.scrollLeft){return document.documentElement.scrollLeft; }else {return document.body.scrollLeft; }} ;;RadEditorNamespace.O8g.i8m=[]; RadEditorNamespace.O8g.O90= function (Z,l90){if (!Z)return; RadEditorNamespace.Utils.w(Z,RadEditorNamespace.O8g.I8i); if (!l90){l90=Z.getAttribute("\x64\x6f\x63king"); }Z.l8x=(l90?l90: "\x68oriz"); RadEditorNamespace.O8g.i8m.push(Z); };RadEditorNamespace.O8g.I8i= {l8j:function (i90,i8j){if (this ==i90.I8i)return; if (null==i90.getAttribute("\x64ocka\x62\x6ce")){alert("\x45\x72ror: Yo\x75 are tr\x79\151ng to d\x6fck non\x2d\x64ock\x61ble \x6fbject"); return; }if (!i90.o8s(this )){alert("\x45rr\x6f\x72: Yo\x75\040\x61re \x6eot allo\x77\x65d t\x6f\040\x64ock \047"+i90.id+"\x27 to \047"+this.id+"\x27 docki\x6e\x67 zo\x6e\145"); return; }i90.I8i=this ; i90.parentNode.removeChild(i90); i90.style.position=""; var insertBeforeObject; if (null!=i8j){insertBeforeObject=this.I90(i8j); }else {insertBeforeObject=(this.o91!=this ?this.o91:null); }if (insertBeforeObject){ this.insertBefore(i90,insertBeforeObject); }else { this.appendChild(i90); } this.O91(this.o91, false); this.o91=null; i90.i8x(); } ,HitTest:function (i90,l91,l66){if (!i90.o8s(this ))return false; if (null==l91)l91= true; var i91=i90.I11(); var I91=this.I11(); var o92=RadEditorNamespace.O8g.o90(); var O92=RadEditorNamespace.O8g.I8z(); var l92=l66.clientX+o92; var i92=l66.clientY+O92; var I92=this.I11().I8y(l92,i92); this.o91=null; var node; for (var i=0; i<this.childNodes.length; i++){node=this.childNodes[i]; if (1!=node.nodeType)continue; if (!node.I8i)continue; if (node==i90)continue; if (!this.o91 && I92 && node.I11().I8y(l92,i92)){ this.o91=node; } this.O91(node,l91 && node==this.o91); }if (!this.o91){ this.o91=(I92?this :null); } this.O91(this,l91 && this ==this.o91); return I92; } ,O91:function (l6,l91){if (!l6)return; if (l91 && null==l6.o93){l6.o93=l6.style.cssText; l6.style.border="\x31\x70x dashed \x23666666"; }else if (!l91 && null!=l6.o93){l6.style.cssText=l6.o93; l6.o93=null; }} ,I90:function (i8j){if (0<=i8j && i8j<this.childNodes.length){return this.childNodes[i8j]; }return null; } ,I11:function (){return RadEditorNamespace.O8g.i8z(this ); }} ;;RadEditor.prototype.O93="RadE\x64itor\x47\x6coba\x6c\x53er\x69alizeC\x6f\x6fkie"; RadEditor.prototype.l93= function (i93,I93){i93="\x5b"+this.Id+i93+"]"; var o94=this.O94(this.O93); var l94=""; var i94=""; if (o94){var array=o94.split(i93); if (array && array.length>1){l94=array[0]; i94=array[1].substr(array[1].indexOf("#")+1); }else i94=o94; }var I94=new Date(); I94.setFullYear(I94.getFullYear()+10); document.cookie=this.O93+"="+(l94+i93+"-"+I93+"#"+i94)+";path=/\x3bexpires="+I94.toUTCString()+"\x3b"; } ; RadEditor.prototype.o95= function (i93){i93="["+this.Id+i93+"\x5d"; var O95=this.O94(this.O93); if (!O95)return null; var I93=null; var index=O95.indexOf(i93); if (index>=0){var l95=index+i93.length+1; I93=O95.substring(l95,O95.indexOf("\x23",l95)); }return I93; } ; RadEditor.prototype.O94= function (i93){var i95=document.cookie.split("\x3b "); for (var i=0; i<i95.length; i++){var I95=i95[i].split("="); if (i93==I95[0])return I95[1]; }return null; } ; RadEditor.prototype.o96= function (O96){if (!this.l96 || !this.i96)return; if (O96){if (this.I1j(RadEditorNamespace.o1k.I96)){var o3s="["; var o97= false; var toolbar; var O97=this.O1l(); for (var i=0; i<O97.length; i++){toolbar=O97[i]; var l8o=escape(toolbar.getAttribute("\x74itle")); var l97=this.i97(toolbar,l8o, true); if (l97){if (o97){o3s+="\x2c"; }o3s+=l97; o97= true; }}o3s+="]"; this.l93("Toolbars",o3s); }o3s="["; o97= false; var module; for (var i=0; i<this.o1m.length; i++){module=this.o1m[i]; var l97=this.i97(module.O1m(),module.T,module.IsEnabled); if (l97){if (o97){o3s+=","; }o3s+=l97; o97= true; }}o3s+="]"; this.l93("Modules",o3s); }else {if (this.I1j(RadEditorNamespace.o1k.I96)){var o3s=this.o95("Tool\x62ars"); if (null!=o3s){var I97,toolbar; var o1l=this.O1l(); var o98=eval(o3s); for (var i=0; i<o98.length; i++){I97=o98[i]; var l8o=unescape(I97[0]); toolbar=this.O98(o1l,l8o); if (!toolbar)continue; this.l98(toolbar,I97); }}}var o3s=this.o95("M\x6f\144\x75\x6ces"); if (null!=o3s){var I97,module; var o98=eval(o3s); for (var i=0; i<o98.length; i++){I97=o98[i]; module=this.i98(I97[0]); if (!module)continue; var o3a=this.l98(module.O1m(),I97); module.l1j(o3a); }}}} ; RadEditor.prototype.O98= function (o1l,I){for (var j=0; j<o1l.length; j++){toolbar=o1l[j]; if (toolbar.getAttribute("tit\x6ce")==I){return toolbar; }}return null; } ; RadEditor.prototype.i97= function (i8i,title,o3a){if (!i8i || !i8i.I8m)return null; var o8j=i8i.I8i; var o3s="\x5b"; o3s+="\047"+title+"\047"; var I98=( false !=o3a)? true : false; o3s+=","+I98; var o99=o8j?o8j.id: ""; if (!o8j && i8i.O99)o99=i8i.O99; o3s+=","+"\x27"+(o99)+"\x27"; if (null!=o8j){for (var j=0; j<o8j.childNodes.length; j++){if (i8i==o8j.childNodes[j]){o3s+=("\x2c"+j); break; }}}else {o3s+="\x2c"; var l99=i8i.I11(); o3s+=RadEditorNamespace.Utils.i99("[{0}\x2c\x7b1}]",l99.left,l99.top); }o3s+="]"; return o3s; } ; RadEditor.prototype.l98= function (i8i,I97){if (!i8i || !i8i.I8m)return null; var title=I97[0]; var o3a=I97[1]; var O8j=I97[2]; var i8j=null; var left=null; var top=null; if (O8j){i8j=I97[3]; }else {left=I97[3][0]; top=I97[3][1]; }if ( false ==o3a)i8i.I8s(); else i8i.O8v(); if (""==O8j){i8i.I8m(); i8i.I99(left,top); }else if (null!=(o8j=document.getElementById(O8j)) && null!=o8j.l8j){o8j.l8j(i8i,i8j); }return o3a; } ;;RadEditorNamespace.O8g.l8l=null; RadEditorNamespace.O8g.o8w= function (Z,O8h,l8h,i8h,I8h,o8i){if (!Z || Z.i5s)return; RadEditorNamespace.Utils.w(Z,RadEditorNamespace.O8g.o9a); if (i8h!= false){RadEditorNamespace.Utils.w(Z,RadEditorNamespace.O8g.O9a); Z.l9a(); }Z.onmouseout= function (e){if (""!=this.style.cursor){ this.style.cursor=""; }} ; Z.onmousedown= function (e){if (!e){e=window.event; }if (document.all && e.button!=1)return; if (this.o8v)this.o8v(); this.DragMode=""; if (this.i9a && this.I9a){ this.DragMode="\x72\x65\x73ize"; }else if (this.o9b && this.i8s(e)){ this.DragMode="\x6dove"; }if (""!=this.DragMode){ this.i8v(e); }RadEditorNamespace.Utils.O66(e); return false; } ; Z.onmousemove= function (e){if (!e){e=window.event; }if (!this.i8t() && null!=this.O9b){ this.I9a=this.O9b(e); this.style.cursor=this.I9a; }if (!this.I9a && this.i8s(e)){ this.style.cursor="move"; }} ; var l9b=navigator.userAgent.toLowerCase(); if (l8h!= false && null!=document.all && l9b.indexOf("\x6dsie 7.\x30")==-1){ this.i9b(Z); }Z.I9b=(O8h!= false); Z.i8l=( false !=I8h); } ; RadEditorNamespace.O8g.o9a= {OnDragStart:null,l8u:null,o9b: true ,i9a: true ,I9b: true ,i8l: true ,i8v:function (l66){ this.o9c=l66.clientX; this.O9c=l66.clientY; RadEditorNamespace.Utils.I1o(document,"\x6fnm\x6f\x75seup",RadEditorNamespace.O8g.l9c); if (this.i8l){RadEditorNamespace.Utils.I1o(document,"onmousemove",RadEditorNamespace.O8g.i9c); RadEditorNamespace.Utils.I1o(document,"on\x6b\x65ydown",RadEditorNamespace.O8g.I9c); }RadEditorNamespace.O8g.l8l=this ; if (this.I9b){ this.o9d=RadEditorNamespace.O8g.O9d(); this.o9d.O8v(this.I11()); }if (this.OnDragStart){ this.OnDragStart(l66); }RadEditorNamespace.O8g.l9d(this ); window.status="\x48it Esc \x74\x6f can\x63\x65l"; } ,O8s:function (l66){if (this.o9d){var l99=this.o9d.I11(); this.I99(l99.left,l99.top); if ("resize"==this.DragMode){ this.SetSize(l99.width,l99.height); }} this.o8n(l66); if (this.l8u){ this.l8u(l66); }} ,o8n:function (l66){RadEditorNamespace.O8g.l8l=null; RadEditorNamespace.O8g.i9d(); RadEditorNamespace.Utils.o1n(document,"\x6f\x6emouseup",RadEditorNamespace.O8g.l9c); if (this.i8l){RadEditorNamespace.Utils.o1n(document,"onmou\x73\x65move",RadEditorNamespace.O8g.i9c); RadEditorNamespace.Utils.o1n(document,"onkeydown",RadEditorNamespace.O8g.I9c); }if (this.o9d){ this.o9d.I8s(); this.o9d=null; } this.DragMode=""; window.status=""; if (this.I9d){ this.I9d.I8s(); }} ,I8l:function (l66){switch (this.DragMode){case "\x6dove": this.i5s(l66); break; case "\x72esize": this.I5t(l66); break; } this.o9c=l66.clientX; this.O9c=l66.clientY; } ,i8s:function (l66){var source=RadEditorNamespace.Utils.O67(l66); return (null!=source && null!=source.getAttribute("grip")); } ,i5s:function (l66){var o9e=l66.clientX-this.o9c; var O9e=l66.clientY-this.O9c; if (this.o9d){ this.o9d.l9e(o9e,O9e); }else { this.l9e(o9e,O9e); }} ,l9e:function (o9e,O9e){if (!this.i9e){ this.i9e=parseInt(this.style.left); }if (!this.Top){ this.Top=parseInt(this.style.top); } this.I99(this.i9e+o9e,this.Top+O9e); } ,I99:function (x,y){ this.i9e=x; this.Top=y; this.style.position="absolute"; this.style.left=this.i9e+"\x70x"; this.style.top=this.Top+"\x70\170"; if (this.I9e){ this.o9f(); this.I9e= false; }if (this.I8v){if (this.I8v.style.display=="\x6eone"){} this.I8v.style.top=this.style.top; this.I8v.style.left=this.style.left; }} ,SetSize:function (width,height){width=parseInt(width); if (!isNaN(width) && width>=0){ this.style.width=width+"px"; if (this.I8v){ this.I8v.style.width=width+"\x70x"; }}height=parseInt(height); if (!isNaN(height) && height>=0){ this.style.height=height+"\x70x"; if (this.I8v){ this.I8v.style.height=height+"px"; }}if (this.O9f && "\x66unction"==typeof(this.O9f))this.O9f(); } ,I11:function (){if (this ==RadEditorNamespace.O8g.l8l && this.o9d && this.o9d.IsVisible()){return RadEditorNamespace.O8g.i8z(this.o9d); }else {return RadEditorNamespace.O8g.i8z(this ); }} ,SetPosition:function (O8z){if (O8z){ this.I99(O8z.left,O8z.top); this.SetSize(O8z.width,O8z.height); }} ,o8v:function (){var l9f=0; var zIndex=0; var i9f=this.parentNode.childNodes; var node; for (var i=0; i<i9f.length; i++){node=i9f[i]; if (1!=node.nodeType)continue; zIndex=parseInt(node.style.zIndex); if (zIndex>l9f){l9f=zIndex; }} this.style.zIndex=l9f+1; } ,O8v:function (O8z){if (this.IsVisible())return; this.style.display=this.I9f?this.I9f: ""; if (null!=O8z){ this.SetPosition(O8z); } this.o8v(); if (this.I8u){ this.I8u(); }} ,I8s:function (){if (!this.IsVisible())return; this.I9f=this.style.display; this.style.display="no\x6ee"; if (this.i8u){ this.i8u(); }} ,I8u:function (){if (this.I8j){ this.I8j(); }} ,i8u:function (){if (this.o8t){ this.o8t(); }} ,IsVisible:function (){return (this.style.display!="\x6eone"); } ,i8t:function (){return ("resize"==this.DragMode); } ,o8m:function (){return ("mov\x65"==this.DragMode); }} ; RadEditorNamespace.O8g.l9c= function (l66){if (!RadEditorNamespace.O8g.l8l)return; if (!l66){l66=window.event; }RadEditorNamespace.O8g.l8l.O8s(l66); } ; RadEditorNamespace.O8g.i9c= function (l66){if (!RadEditorNamespace.O8g.l8l)return; if (!l66){l66=window.event; }RadEditorNamespace.O8g.l8l.I8l(l66); RadEditorNamespace.Utils.O66(l66); } ; RadEditorNamespace.O8g.I9c= function (l66){if (!RadEditorNamespace.O8g.l8l)return; if (!l66){l66=window.event; }if (27==l66.keyCode){RadEditorNamespace.O8g.l8l.o8n(l66); }} ; RadEditorNamespace.O8g.o9g=null; RadEditorNamespace.O8g.O9d= function (){if (RadEditorNamespace.O8g.o9g){return RadEditorNamespace.O8g.o9g; }var O9g=document.createElement("\x44IV"); document.body.appendChild(O9g); O9g.setAttribute("\x73tyle","-moz-opaci\x74\x79:0.\x33"); O9g.style.border="1px\x20\x64ashed\x20\x67ray"; O9g.style.backgroundColor="#\x63\x63cccc"; O9g.style.filter="pro\x67\x69d:DXIm\x61geTra\x6e\x73fo\x72m.Micr\x6f\x73of\x74\056\x41lp\x68\141(\x6f\160a\x63\151t\x79=50)"; O9g.style.margin="\060p\x78\x200px 0\x70\x78 0px"; O9g.style.padding="0\x70\x78"; O9g.style.position="absolu\x74\x65"; O9g.style.top=10; O9g.style.left=10; O9g.style.width=100; O9g.style.height=100; O9g.style.zIndex=50000; O9g.style.overflow="h\x69\x64den"; O9g.style.display="none"; RadEditorNamespace.O8g.o8w(O9g, false , false , true); RadEditorNamespace.O8g.o9g=O9g; return O9g; } ; RadEditorNamespace.O8g.i9b= function (Z){Z.o9f= function (){var frm=document.createElement("\x49FRAME"); frm.src="\x6a\141v\x61\x73cript\x3a\x66al\x73\145"; frm.frameBorder=0; frm.scrolling="n\x6f"; frm.style.overflow="hidden"; frm.style.display="i\x6e\x6cine"; frm.style.position="\x61bsolut\x65"; try {var O8z=this.I11(); frm.style.width=O8z.width; frm.style.height=O8z.height; frm.style.left=O8z.left; frm.style.top=O8z.top; }catch (ex){} this.parentNode.insertBefore(frm,this ); this.I8v=frm; } ; Z.I8j= function (){if (this.I8v){ this.parentNode.insertBefore(this.I8v,this ); this.I8v.style.display="\x69nline"; this.I8v.style.position="a\x62\x73olute"; var O8z=this.I11(); this.I8v.style.width=O8z.width; this.I8v.style.height=O8z.height; this.I8v.style.left=O8z.left; this.I8v.style.top=O8z.top; }} ; Z.o8t= function (){if (null!=this.I8v && null!=this.I8v.parentNode){ this.I8v.parentNode.removeChild(this.I8v); this.I8v.style.display="n\x6f\x6ee"; }} ; Z.l8t= function (){return (this.I8v && this.I8v.style.display!="\x6eone"); } ; Z.I9e= true; } ; RadEditorNamespace.O8g.l9g=null; RadEditorNamespace.O8g.I8k= function (){if (!RadEditorNamespace.O8g.l9g){var img=document.createElement("\x49MG"); img.style.display="\x6eone"; img.setAttribute("\x75nselectab\x6c\145","\x6fn"); var i9g= function (){return false; } ; img.onselectstart=i9g; img.ondragstart=i9g; img.onmouseover=i9g; img.onmousemove=i9g; RadEditorNamespace.O8g.l9g=img; }return RadEditorNamespace.O8g.l9g; } ; RadEditorNamespace.O8g.l9d= function (insertBefore){var i8k=this.I8k(); if (i8k){document.body.appendChild(i8k); i8k.style.position="abs\x6f\x6cute"; i8k.style.display=""; i8k.style.left=i8k.style.top="0\x70\x78"; i8k.style.width=parseInt(window.screen.width)-1; i8k.style.height=parseInt(window.screen.height)-1; }} ; RadEditorNamespace.O8g.i9d= function (){var i8k=this.I8k(); if (i8k){i8k.parentNode.removeChild(i8k); i8k.style.display="none"; }} ;;RadEditorNamespace.O8g.I9g=5; RadEditorNamespace.O8g.o9h=5; RadEditorNamespace.O8g.O9a= {I8x: true ,O9b:function (l66,O9h,l9h){if (!this.I8x)return ""; var i9h=l66.srcElement?l66.srcElement:l66.target; if (i9h!=this )return ""; var l99=this.I11(); var I9h=""; if (null==O9h)O9h=RadEditorNamespace.O8g.I9g; if (null==l9h)l9h=RadEditorNamespace.O8g.o9h; var offsetX,offsetY; if (null!=l66.offsetY){offsetX=l66.offsetX; offsetY=l66.offsetY; }else if (null!=l66.layerY){offsetX=l66.layerX; offsetY=l66.layerY; }if (offsetY<=l9h && this.o9i){I9h+="n"; }else if ((l99.height-offsetY)<=l9h && this.O9i){I9h+="\x73"; }if (offsetX<=O9h && this.l9i){I9h+="\x77"; }else if ((l99.width-offsetX)<=O9h && this.i9i){I9h+="e"; }return (""!=I9h?(I9h+"-r\x65\x73ize"): ""); } ,I5t:function (l66){var o9e=l66.clientX-this.o9c; var O9e=l66.clientY-this.O9c; this.style.cursor=this.I9a; switch (this.I9a){case "n-resi\x7a\x65": this.I9i(0,O9e,null,null); break; case "s\x2d\x72esize": this.I9i(0,0,0,O9e); break; case "w\x2d\x72esize": this.I9i(o9e,0,null,null); break; case "e-resize": this.I9i(0,0,o9e,0); break; case "n\x65\x2dresize": this.I9i(0,O9e,o9e,null); break; case "nw-\x72\x65size": this.I9i(o9e,O9e,null,null); break; case "\x73e-res\x69\x7ae": this.I9i(0,0,o9e,O9e); break; case "sw-resiz\x65": this.I9i(o9e,0,null,O9e); break; default:break; }} ,I9i:function (offsetLeft,offsetTop,offsetWidth,offsetHeight){var l99=this.I11(); var top=l99.top+offsetTop; var left=l99.left+offsetLeft; if (top<0){offsetTop=-l99.top; }if (left<0){offsetLeft=-l99.left; }top=l99.top+offsetTop; left=l99.left+offsetLeft; if (null==offsetWidth)offsetWidth=-offsetLeft; if (null==offsetHeight)offsetHeight=-offsetTop; var width=l99.width+offsetWidth; var height=l99.height+offsetHeight; width=Math.max(this.o9j,width); width=Math.min(this.O9j,width); height=Math.max(this.l9j,height); height=Math.min(this.i9j,height); var I9j=(this.o9d?this.o9d: this ); if (l99.width!=width){I9j.l9e(offsetLeft,0); I9j.SetSize(width,null); }if (l99.height!=height){I9j.l9e(0,offsetTop); I9j.SetSize(null,height); }} ,o9k:function (O9k){ this.o9i=(-1!=O9k.indexOf("\156")); this.O9i=(-1!=O9k.indexOf("s")); this.i9i=(-1!=O9k.indexOf("e")); this.l9i=(-1!=O9k.indexOf("\167")); } ,l9a:function (){var O9k=this.getAttribute("resize"); if ("string"==typeof(O9k)){O9k=O9k.toLowerCase(); }else {O9k="nsew"; } this.o9k(O9k); this.o9j=RadEditorNamespace.Utils.O65(this.getAttribute("\x6dinWidt\x68")); this.O9j=RadEditorNamespace.Utils.O65(this.getAttribute("maxWidth"),100000); this.l9j=RadEditorNamespace.Utils.O65(this.getAttribute("minHei\x67\x68t")); this.i9j=RadEditorNamespace.Utils.O65(this.getAttribute("\x6daxHeight"),100000); }} ;;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -