Dialog_Tag_Div.js
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:11k
源码类别:

OA系统

开发平台:

C#

  1. var OxOc272=["SetStyle","length","","GetStyle","GetText",":",";","cssText","tblBorderStyle","sel_style","sel_border","sel_part","bordercolor","bordercolor_Preview","inp_color","inp_color_Preview","inp_shade","inp_shade_Preview","inp_MarginLeft","inp_MarginRight","inp_MarginTop","inp_MarginBottom","inp_PaddingLeft","inp_PaddingRight","inp_PaddingTop","inp_PaddingBottom","inp_width","sel_width_unit","inp_height","sel_height_unit","inp_id","inp_class","sel_align","sel_textalign","sel_float","inp_tooltip","value","borderColor","style"," ","backgroundColor","color","id","className","width","height","inp_","sel_","_unit","selectedIndex","options","align","styleFloat","textAlign","title","borderWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle","none","border","-","red","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","[[ValidID]]","class","onclick"]; function pause(Ox396){var Ox10a= new Date();var Ox397=Ox10a.getTime()+Ox396;while(true){ Ox10a= new Date() ;if(Ox10a.getTime()>Ox397){return ;} ;} ;}  ; function StyleClass(Ox18e){var Ox399=[];var Ox39a={};if(Ox18e){ Ox39f() ;} ; this[OxOc272[0x0]]=function SetStyle(name,Ox1be,Ox39c){ name=name.toLowerCase() ;for(var i=0x0;i<Ox399[OxOc272[0x1]];i++){if(Ox399[i]==name){break ;} ;} ; Ox399[i]=name ; Ox39a[name]=Ox1be?(Ox1be+(Ox39c||OxOc272[0x2])):OxOc272[0x2] ;}  ; this[OxOc272[0x3]]=function GetStyle(name){ name=name.toLowerCase() ;return Ox39a[name]||OxOc272[0x2];}  ; this[OxOc272[0x4]]=function Ox39e(){var Ox18e=OxOc272[0x2];for(var i=0x0;i<Ox399[OxOc272[0x1]];i++){var n=Ox399[i];var p=Ox39a[n];if(p){ Ox18e+=n+OxOc272[0x5]+p+OxOc272[0x6] ;} ;} ;return Ox18e;}  ; function Ox39f(){var arr=Ox18e.split(OxOc272[0x6]);for(var i=0x0;i<arr[OxOc272[0x1]];i++){var p=arr[i].split(OxOc272[0x5]);var n=p[0x0].replace(/^s+/g,OxOc272[0x2]).replace(/s+$/g,OxOc272[0x2]).toLowerCase(); Ox399[Ox399[OxOc272[0x1]]]=n ; Ox39a[n]=p[0x1] ;} ;}  ;}  ; function GetStyle(Ox3a0,name){return  new StyleClass(Ox3a0.cssText).GetStyle(name);}  ; function SetStyle(Ox3a0,name,Ox1be,Ox3a1){var Ox3a2= new StyleClass(Ox3a0.cssText); Ox3a2.SetStyle(name,Ox1be,Ox3a1) ; Ox3a0[OxOc272[0x7]]=Ox3a2.GetText() ;}  ; function ParseFloatToString(Ox24){if(!Ox24){return OxOc272[0x2];} ;var Oxe=parseFloat(Ox24);if(isNaN(Oxe)){return OxOc272[0x2];} ;return Oxe+OxOc272[0x2];}  ;var tblBorderStyle=Window_GetElement(window,OxOc272[0x8],true);var sel_style=Window_GetElement(window,OxOc272[0x9],true);var sel_border=Window_GetElement(window,OxOc272[0xa],true);var sel_part=Window_GetElement(window,OxOc272[0xb],true);var bordercolor=Window_GetElement(window,OxOc272[0xc],true);var bordercolor_Preview=Window_GetElement(window,OxOc272[0xd],true);var inp_color=Window_GetElement(window,OxOc272[0xe],true);var inp_color_Preview=Window_GetElement(window,OxOc272[0xf],true);var inp_shade=Window_GetElement(window,OxOc272[0x10],true);var inp_shade_Preview=Window_GetElement(window,OxOc272[0x11],true);var inp_MarginLeft=Window_GetElement(window,OxOc272[0x12],true);var inp_MarginRight=Window_GetElement(window,OxOc272[0x13],true);var inp_MarginTop=Window_GetElement(window,OxOc272[0x14],true);var inp_MarginBottom=Window_GetElement(window,OxOc272[0x15],true);var inp_PaddingLeft=Window_GetElement(window,OxOc272[0x16],true);var inp_PaddingRight=Window_GetElement(window,OxOc272[0x17],true);var inp_PaddingTop=Window_GetElement(window,OxOc272[0x18],true);var inp_PaddingBottom=Window_GetElement(window,OxOc272[0x19],true);var inp_width=Window_GetElement(window,OxOc272[0x1a],true);var sel_width_unit=Window_GetElement(window,OxOc272[0x1b],true);var inp_height=Window_GetElement(window,OxOc272[0x1c],true);var sel_height_unit=Window_GetElement(window,OxOc272[0x1d],true);var inp_id=Window_GetElement(window,OxOc272[0x1e],true);var inp_class=Window_GetElement(window,OxOc272[0x1f],true);var sel_align=Window_GetElement(window,OxOc272[0x20],true);var sel_textalign=Window_GetElement(window,OxOc272[0x21],true);var sel_float=Window_GetElement(window,OxOc272[0x22],true);var inp_tooltip=Window_GetElement(window,OxOc272[0x23],true); UpdateState=function UpdateState_Div(){}  ; function doBorderStyle(Ox2a){ sel_style[OxOc272[0x24]]=Ox2a ;}  ; function doPart(Ox2a){ sel_part[OxOc272[0x24]]=Ox2a ;}  ; function doWidth(Ox2a){ sel_border[OxOc272[0x24]]=Ox2a ;}  ; SyncToView=function SyncToView_Div(){if(Browser_IsWinIE()){ bordercolor[OxOc272[0x24]]=element[OxOc272[0x26]][OxOc272[0x25]] ;} else {var arr=revertColor(element[OxOc272[0x26]].borderColor).split(OxOc272[0x27]); bordercolor[OxOc272[0x24]]=arr[0x0] ;} ; bordercolor[OxOc272[0x26]][OxOc272[0x28]]=bordercolor[OxOc272[0x24]] ; bordercolor_Preview[OxOc272[0x26]][OxOc272[0x28]]=bordercolor[OxOc272[0x24]] ; inp_color[OxOc272[0x24]]=revertColor(element[OxOc272[0x26]].color) ; inp_color[OxOc272[0x26]][OxOc272[0x28]]=element[OxOc272[0x26]][OxOc272[0x29]] ; inp_color_Preview[OxOc272[0x26]][OxOc272[0x28]]=element[OxOc272[0x26]][OxOc272[0x29]] ; inp_shade[OxOc272[0x24]]=revertColor(element[OxOc272[0x26]].backgroundColor) ; inp_shade[OxOc272[0x26]][OxOc272[0x28]]=element[OxOc272[0x26]][OxOc272[0x28]] ; inp_shade_Preview[OxOc272[0x26]][OxOc272[0x28]]=element[OxOc272[0x26]][OxOc272[0x28]] ; inp_id[OxOc272[0x24]]=element[OxOc272[0x2a]] ;if(ParseFloatToString(element[OxOc272[0x26]].marginLeft)){ inp_MarginLeft[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]].marginLeft) ;} ;if(ParseFloatToString(element[OxOc272[0x26]].marginRight)){ inp_MarginRight[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]].marginRight) ;} ;if(ParseFloatToString(element[OxOc272[0x26]].marginTop)){ inp_MarginTop[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]].marginTop) ;} ;if(ParseFloatToString(element[OxOc272[0x26]].marginBottom)){ inp_MarginBottom[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]].marginBottom) ;} ;if(ParseFloatToString(element[OxOc272[0x26]].paddingLeft)){ inp_PaddingLeft[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]].paddingLeft) ;} ;if(ParseFloatToString(element[OxOc272[0x26]].paddingRight)){ inp_PaddingRight[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]].paddingRight) ;} ;if(ParseFloatToString(element[OxOc272[0x26]].paddingTop)){ inp_PaddingTop[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]].paddingTop) ;} ;if(ParseFloatToString(element[OxOc272[0x26]].paddingBottom)){ inp_PaddingBottom[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]].paddingBottom) ;} ; inp_class[OxOc272[0x24]]=element[OxOc272[0x2b]] ;var arr=[OxOc272[0x2c],OxOc272[0x2d]];for(var Ox189=0x0;Ox189<arr[OxOc272[0x1]];Ox189++){var n=arr[Ox189];var Oxb0=Window_GetElement(window,OxOc272[0x2e]+n,true);var Ox2a=Window_GetElement(window,OxOc272[0x2f]+n+OxOc272[0x30],true); Ox2a[OxOc272[0x31]]=0x0 ;if(ParseFloatToString(element[OxOc272[0x26]][n])){ Oxb0[OxOc272[0x24]]=ParseFloatToString(element[OxOc272[0x26]][n]) ;for(var i=0x0;i<Ox2a[OxOc272[0x32]][OxOc272[0x1]];i++){var Ox60=Ox2a[OxOc272[0x32]][i][OxOc272[0x24]];if(Ox60&&element[OxOc272[0x26]][n].indexOf(Ox60)!=-0x1){ Ox2a[OxOc272[0x31]]=i ;break ;} ;} ;} ;} ; sel_align[OxOc272[0x24]]=element[OxOc272[0x33]] ; sel_float[OxOc272[0x24]]=element[OxOc272[0x26]][OxOc272[0x34]] ; sel_textalign[OxOc272[0x24]]=element[OxOc272[0x26]][OxOc272[0x35]] ; inp_tooltip[OxOc272[0x24]]=element[OxOc272[0x36]] ;try{ sel_border[OxOc272[0x24]]=element[OxOc272[0x26]][OxOc272[0x37]] ;if(element[OxOc272[0x26]][OxOc272[0x39]]==element[OxOc272[0x26]][OxOc272[0x3b]]&&element[OxOc272[0x26]][OxOc272[0x39]]==element[OxOc272[0x26]][OxOc272[0x3a]]&&element[OxOc272[0x26]][OxOc272[0x39]]==element[OxOc272[0x26]][OxOc272[0x38]]){ sel_border[OxOc272[0x24]]=element[OxOc272[0x26]][OxOc272[0x39]] ;} ;if(element[OxOc272[0x26]][OxOc272[0x3d]]==element[OxOc272[0x26]][OxOc272[0x3f]]&&element[OxOc272[0x26]][OxOc272[0x3d]]==element[OxOc272[0x26]][OxOc272[0x3e]]&&element[OxOc272[0x26]][OxOc272[0x3d]]==element[OxOc272[0x26]][OxOc272[0x3c]]){ sel_style[OxOc272[0x24]]=element[OxOc272[0x26]][OxOc272[0x3d]] ;} ;} catch(x){} ;}  ; SyncTo=function SyncTo_Div(element){var Ox3bb=sel_part[OxOc272[0x24]];if(Ox3bb==OxOc272[0x40]){ element[OxOc272[0x26]][OxOc272[0x41]]=OxOc272[0x40] ;} else {var Ox3bc=Ox3bb?OxOc272[0x42]+Ox3bb:Ox3bb;var Ox70=OxOc272[0x43];var Ox3a0=sel_style[OxOc272[0x24]]||OxOc272[0x2];var Ox3bd=sel_border[OxOc272[0x24]]; element[OxOc272[0x26]][OxOc272[0x41]]=OxOc272[0x40] ;if(Ox3bd||Ox3a0){ SetStyle(element[OxOc272[0x26]],OxOc272[0x41]+Ox3bc,Ox3bd+OxOc272[0x27]+Ox3a0+OxOc272[0x27]+Ox70) ;} else { SetStyle(element[OxOc272[0x26]],OxOc272[0x41]+Ox3bc,OxOc272[0x2]) ;} ; SetStyle(element[OxOc272[0x26]],OxOc272[0x41]+Ox3bc,Ox3bd+OxOc272[0x27]+Ox3a0+OxOc272[0x27]+Ox70) ;} ;try{ element[OxOc272[0x26]][OxOc272[0x29]]=inp_color[OxOc272[0x24]]||OxOc272[0x2] ;} catch(x){ element[OxOc272[0x26]][OxOc272[0x29]]=OxOc272[0x2] ;} ;try{ element[OxOc272[0x26]][OxOc272[0x28]]=inp_shade[OxOc272[0x24]]||OxOc272[0x2] ;} catch(x){ element[OxOc272[0x26]][OxOc272[0x28]]=OxOc272[0x2] ;} ;try{ element[OxOc272[0x26]][OxOc272[0x25]]=bordercolor[OxOc272[0x24]]||OxOc272[0x2] ;} catch(x){ element[OxOc272[0x26]][OxOc272[0x25]]=OxOc272[0x2] ;} ; element[OxOc272[0x26]][OxOc272[0x44]]=inp_PaddingLeft[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x45]]=inp_PaddingRight[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x46]]=inp_PaddingTop[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x47]]=inp_PaddingBottom[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x48]]=inp_MarginLeft[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x49]]=inp_MarginRight[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x4a]]=inp_MarginTop[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x4b]]=inp_MarginBottom[OxOc272[0x24]] ; element[OxOc272[0x2b]]=inp_class[OxOc272[0x24]] ;var arr=[OxOc272[0x2c],OxOc272[0x2d]];for(var Ox189=0x0;Ox189<arr[OxOc272[0x1]];Ox189++){var n=arr[Ox189];var Oxb0=Window_GetElement(window,OxOc272[0x2e]+n,true);var Ox3be=Window_GetElement(window,OxOc272[0x2f]+n+OxOc272[0x30],true);if(ParseFloatToString(Oxb0.value)){ element[OxOc272[0x26]][n]=ParseFloatToString(Oxb0.value)+Ox3be[OxOc272[0x24]] ;} else { element[OxOc272[0x26]][n]=OxOc272[0x2] ;} ;} ;var Ox268=/[^a-zd]/i;if(Ox268.test(inp_id.value)){ alert(OxOc272[0x4c]) ;return ;} ; element[OxOc272[0x33]]=sel_align[OxOc272[0x24]] ; element[OxOc272[0x2a]]=inp_id[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x34]]=sel_float[OxOc272[0x24]] ; element[OxOc272[0x26]][OxOc272[0x35]]=sel_textalign[OxOc272[0x24]] ; element[OxOc272[0x36]]=inp_tooltip[OxOc272[0x24]] ;if(element[OxOc272[0x36]]==OxOc272[0x2]){ element.removeAttribute(OxOc272[0x36]) ;} ;if(element[OxOc272[0x2b]]==OxOc272[0x2]){ element.removeAttribute(OxOc272[0x2b]) ;} ;if(element[OxOc272[0x2b]]==OxOc272[0x2]){ element.removeAttribute(OxOc272[0x4d]) ;} ;if(element[OxOc272[0x33]]==OxOc272[0x2]){ element.removeAttribute(OxOc272[0x33]) ;} ;}  ;if(!Browser_IsWinIE()){ bordercolor[OxOc272[0x4e]]=bordercolor_Preview[OxOc272[0x4e]]=function bordercolor_onclick(){ SelectColor(bordercolor) ;}  ; inp_color[OxOc272[0x4e]]=inp_color_Preview[OxOc272[0x4e]]=function inp_color_onclick(){ SelectColor(inp_color) ;}  ; inp_shade[OxOc272[0x4e]]=inp_shade_Preview[OxOc272[0x4e]]=function inp_shade_onclick(){ SelectColor(inp_shade) ;}  ;} ;