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

OA系统

开发平台:

C#

  1. var OxO74ef=["SetStyle","length","","GetStyle","GetText",":",";","cssText","sel_font","div_font_detail","sel_fontfamily","cb_decoration_under","cb_decoration_over","cb_decoration_through","cb_style_bold","cb_style_italic","sel_fontTransform","sel_fontsize","inp_fontsize","sel_fontsize_unit","inp_color","outer","div_demo","disabled","selectedIndex","style","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[OxO74ef[0x0]]=function SetStyle(name,Ox1be,Ox39c){ name=name.toLowerCase() ;for(var i=0x0;i<Ox399[OxO74ef[0x1]];i++){if(Ox399[i]==name){break ;} ;} ; Ox399[i]=name ; Ox39a[name]=Ox1be?(Ox1be+(Ox39c||OxO74ef[0x2])):OxO74ef[0x2] ;}  ; this[OxO74ef[0x3]]=function GetStyle(name){ name=name.toLowerCase() ;return Ox39a[name]||OxO74ef[0x2];}  ; this[OxO74ef[0x4]]=function Ox39e(){var Ox18e=OxO74ef[0x2];for(var i=0x0;i<Ox399[OxO74ef[0x1]];i++){var n=Ox399[i];var p=Ox39a[n];if(p){ Ox18e+=n+OxO74ef[0x5]+p+OxO74ef[0x6] ;} ;} ;return Ox18e;}  ; function Ox39f(){var arr=Ox18e.split(OxO74ef[0x6]);for(var i=0x0;i<arr[OxO74ef[0x1]];i++){var p=arr[i].split(OxO74ef[0x5]);var n=p[0x0].replace(/^s+/g,OxO74ef[0x2]).replace(/s+$/g,OxO74ef[0x2]).toLowerCase(); Ox399[Ox399[OxO74ef[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[OxO74ef[0x7]]=Ox3a2.GetText() ;}  ; function ParseFloatToString(Ox24){var Oxe=parseFloat(Ox24);if(isNaN(Oxe)){return OxO74ef[0x2];} ;return Oxe+OxO74ef[0x2];}  ;var sel_font=Window_GetElement(window,OxO74ef[0x8],true);var div_font_detail=Window_GetElement(window,OxO74ef[0x9],true);var sel_fontfamily=Window_GetElement(window,OxO74ef[0xa],true);var cb_decoration_under=Window_GetElement(window,OxO74ef[0xb],true);var cb_decoration_over=Window_GetElement(window,OxO74ef[0xc],true);var cb_decoration_through=Window_GetElement(window,OxO74ef[0xd],true);var cb_style_bold=Window_GetElement(window,OxO74ef[0xe],true);var cb_style_italic=Window_GetElement(window,OxO74ef[0xf],true);var sel_fontTransform=Window_GetElement(window,OxO74ef[0x10],true);var sel_fontsize=Window_GetElement(window,OxO74ef[0x11],true);var inp_fontsize=Window_GetElement(window,OxO74ef[0x12],true);var sel_fontsize_unit=Window_GetElement(window,OxO74ef[0x13],true);var inp_color=Window_GetElement(window,OxO74ef[0x14],true);var outer=Window_GetElement(window,OxO74ef[0x15],true);var div_demo=Window_GetElement(window,OxO74ef[0x16],true); UpdateState=function UpdateState_Font(){ inp_fontsize[OxO74ef[0x17]]=sel_fontsize_unit[OxO74ef[0x17]]=(sel_fontsize[OxO74ef[0x18]]>0x0) ; div_font_detail[OxO74ef[0x17]]=sel_font[OxO74ef[0x18]]>0x0 ; div_demo[OxO74ef[0x19]][OxO74ef[0x7]]=element[OxO74ef[0x19]][OxO74ef[0x7]] ;}  ; SyncToView=function SyncToView_Font(){}  ; SyncTo=function SyncTo_Font(element){}  ;if(!Browser_IsWinIE()){ inp_color[OxO74ef[0x1a]]=function inp_color_onclick(){ SelectColor(inp_color) ;}  ;} ;