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

📄 radmoveableobject.js

📁 Telerik是很大的第三方软件制造商
💻 JS
字号:
if ("\165\x6edefined"==typeof(RadDockNamespace)){RadDockNamespace=new Object(); }RadDockNamespace.O1o= {l1o: 0,i1o: 1,I1o: 2,o1p: 4,O1p: 8,l1p: 6,i1p: 5,I1p: 10,o1q: 9,O1q: 15 } ; RadDockNamespace.K= function (L){if (!L)return; Object.k(L,RadDockNamespace.l1q); L.O7=(L.offsetWidth?L.offsetWidth:parseInt(L.style.width)); L.l7=(L.offsetHeight?L.offsetHeight:parseInt(L.style.height)); } ; RadDockNamespace.l1q= {i1q: 20,I1q: 100000,o1r: 20,O1r: 100000,l1r:RadDockNamespace.O1o.O1q,O7: 0,l7: 0,MoveBy:function (Ox,lx){var x=RadDockNamespace.O1f(this.style.left,0); var y=RadDockNamespace.O1f(this.style.top,0); this.MoveTo(x+Ox,y+lx); } ,MoveTo:function (x,y){x=RadDockNamespace.O1f(x,0); y=RadDockNamespace.O1f(y,0); this.style.position="\141\x62solu\x74\145"; this.style.left=(x+"px"); this.style.top=(y+"px"); } ,o2:function (I1f){if (!document.all)return; if ("\x43SS1Com\x70\x61t"==document.compatMode){var i1r=this.GetRect(); var o1g=i1r.height; var O1g=(o1g-parseInt(I1f.style.height)); if (O1g>0){var l1g=(parseInt(I1f.style.height)-O1g); if (l1g>0)I1f.style.height=l1g+"\x70x"; }}} ,SetSize:function (width,height){width=RadDockNamespace.O1f(width,-1); height=RadDockNamespace.O1f(height,-1); if (width>-1){ this.style.width=width+"\x70\170"; }if (height>-1){ this.style.height=height+"\x70x"; }RadDockNamespace.o2(this ); } ,I1r:function (offsetLeft,offsetTop,offsetWidth,offsetHeight){var le=this.GetRect(); var top=le.top+offsetTop; var left=le.left+offsetLeft; if (top<0){offsetTop=-le.top; }if (left<0){offsetLeft=-le.left; }top=le.top+offsetTop; left=le.left+offsetLeft; if (null==offsetWidth)offsetWidth=-offsetLeft; if (null==offsetHeight)offsetHeight=-offsetTop; var width=le.width+offsetWidth; var height=le.height+offsetHeight; width=Math.max(this.i1q,width); width=Math.min(this.I1q,width); height=Math.max(this.o1r,height); height=Math.min(this.O1r,height); if (le.width!=width){ this.MoveBy(offsetLeft,0); this.SetSize(width,null); }if (le.height!=height){ this.MoveBy(0,offsetTop); this.SetSize(null,height); }} ,oa:function (){var o1s=0; var zIndex=0; var O1s=this.parentNode.childNodes; var node; for (var i=0; i<O1s.length; i++){node=O1s[i]; if (1!=node.nodeType)continue; zIndex=parseInt(node.style.zIndex); if (zIndex>o1s){o1s=zIndex; }} this.style.zIndex=(o1s+1); if (!document.all){var parentNode=this.parentNode; parentNode.removeChild(this ); parentNode.appendChild(this ); }} ,r:function (dir,l1s,i1s){switch (dir.toLowerCase()){case "\156\x2dresize": this.I1r(0,i1s,null,null); break; case "\x73\055r\x65\x73ize": this.I1r(0,0,0,i1s); break; case "\x77-resize": this.I1r(l1s,0,null,null); break; case "\x65\x2dresiz\x65": this.I1r(0,0,l1s,0); break; case "ne-\x72\x65size": this.I1r(0,i1s,l1s,null); break; case "\x6ew-resize": this.I1r(l1s,i1s,null,null); break; case "se-\x72\x65size": this.I1r(0,0,l1s,i1s); break; case "\x73\x77-resiz\x65": this.I1r(l1s,0,null,i1s); break; }} ,GetRect:function (L){return RadGetElementRect(L || this ); } ,SetRect:function (lz){ this.MoveTo(lz.left,lz.top); this.SetSize(lz.width,lz.height); } ,i12:function (ok){var x=ok.clientX+RadDockNamespace.Of(); var y=ok.clientY+RadDockNamespace.If(); var le=this.GetRect(); var borderWidth=RadDockNamespace.O1f(this.style.borderWidth,0)+10; var I1s=""; if (((this.l1r&RadDockNamespace.O1o.i1o)>0) && (le.top<=y) && (y<=(le.top+borderWidth))){I1s="\x6e"; }else if (((this.l1r&RadDockNamespace.O1o.I1o)>0) && ((le.bottom-borderWidth)<=y) && (y<=le.bottom)){I1s="s"; }if (((this.l1r&RadDockNamespace.O1o.O1p)>0) && (le.left<=x) && (x<=(le.left+borderWidth))){I1s+="w"; }else if (((this.l1r&RadDockNamespace.O1o.o1p)>0) && ((le.right-borderWidth)<=x) && (x<=le.right)){I1s+="\145"; }if (I1s){I1s+="-resize"; }return I1s; } ,IsVisible:function (){return (this.style.display!="no\x6e\x65"); } ,Show:function (show){if (show== false){ this.O7=this.offsetWidth; this.l7=this.offsetHeight; this.o1t=this.style.display; this.style.display="\x6eone"; }else { this.style.display=this.o1t?this.o1t: ""; }if (this.o6){ this.o6(); }} ,Hide:function (){ this.Show( false); }} ;

⌨️ 快捷键说明

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