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

OA系统

开发平台:

C#

  1. var OxO15c0=["inp_width","inp_height","sel_align","sel_valign","inp_bgColor","inp_borderColor","inp_borderColorLight","inp_borderColorDark","inp_class","inp_id","inp_tooltip","sel_noWrap","sel_CellScope","specified","","nodeValue","backgroundColor","style","bgColor","value","id","borderColor","borderColorLight","borderColorDark","className","width","height","align","vAlign","title","noWrap","scope","[[ValidNumber]]","[[ValidID]]","class","valign","onclick"];var inp_width=Window_GetElement(window,OxO15c0[0x0],true);var inp_height=Window_GetElement(window,OxO15c0[0x1],true);var sel_align=Window_GetElement(window,OxO15c0[0x2],true);var sel_valign=Window_GetElement(window,OxO15c0[0x3],true);var inp_bgColor=Window_GetElement(window,OxO15c0[0x4],true);var inp_borderColor=Window_GetElement(window,OxO15c0[0x5],true);var inp_borderColorLight=Window_GetElement(window,OxO15c0[0x6],true);var inp_borderColorDark=Window_GetElement(window,OxO15c0[0x7],true);var inp_class=Window_GetElement(window,OxO15c0[0x8],true);var inp_id=Window_GetElement(window,OxO15c0[0x9],true);var inp_tooltip=Window_GetElement(window,OxO15c0[0xa],true);var sel_noWrap=Window_GetElement(window,OxO15c0[0xb],true);var sel_CellScope=Window_GetElement(window,OxO15c0[0xc],true); SyncToView=function SyncToView_Td(){ function GetAttribute(Ox30f){var attr=element.getAttributeNode(Ox30f);if(attr==null||!attr[OxO15c0[0xd]]){return OxO15c0[0xe];} ;return attr[OxO15c0[0xf]];}  ; inp_bgColor[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x12])||element[OxO15c0[0x11]][OxO15c0[0x10]] ; inp_id[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x14]) ; inp_bgColor[OxO15c0[0x11]][OxO15c0[0x10]]=inp_bgColor[OxO15c0[0x13]] ; inp_borderColor[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x15]) ; inp_borderColor[OxO15c0[0x11]][OxO15c0[0x10]]=inp_borderColor[OxO15c0[0x13]] ; inp_borderColorLight[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x16]) ; inp_borderColorLight[OxO15c0[0x11]][OxO15c0[0x10]]=inp_borderColorLight[OxO15c0[0x13]] ; inp_borderColorDark[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x17]) ; inp_borderColorDark[OxO15c0[0x11]][OxO15c0[0x10]]=inp_borderColorDark[OxO15c0[0x13]] ; inp_class[OxO15c0[0x13]]=element[OxO15c0[0x18]] ; inp_width[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x19]) ; inp_height[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x1a]) ; sel_align[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x1b]) ; sel_valign[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x1c]) ; inp_tooltip[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x1d]) ; sel_noWrap[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x1e]) ; sel_CellScope[OxO15c0[0x13]]=GetAttribute(OxO15c0[0x1f]) ;}  ; SyncTo=function SyncTo_Td(element){if(inp_bgColor[OxO15c0[0x13]]){if(element[OxO15c0[0x11]][OxO15c0[0x10]]){ element[OxO15c0[0x11]][OxO15c0[0x10]]=inp_bgColor[OxO15c0[0x13]] ;} else { element[OxO15c0[0x12]]=inp_bgColor[OxO15c0[0x13]] ;} ;} ; element[OxO15c0[0x15]]=inp_borderColor[OxO15c0[0x13]] ; element[OxO15c0[0x16]]=inp_borderColorLight[OxO15c0[0x13]] ; element[OxO15c0[0x17]]=inp_borderColorDark[OxO15c0[0x13]] ; element[OxO15c0[0x18]]=inp_class[OxO15c0[0x13]] ;try{ element[OxO15c0[0x19]]=inp_width[OxO15c0[0x13]] ; element[OxO15c0[0x1a]]=inp_height[OxO15c0[0x13]] ;} catch(er){ alert(OxO15c0[0x20]) ;} ;var Ox268=/[^a-zd]/i;if(Ox268.test(inp_id.value)){ alert(OxO15c0[0x21]) ;return ;} ; element[OxO15c0[0x1b]]=sel_align[OxO15c0[0x13]] ; element[OxO15c0[0x14]]=inp_id[OxO15c0[0x13]] ; element[OxO15c0[0x1c]]=sel_valign[OxO15c0[0x13]] ; element[OxO15c0[0x1e]]=sel_noWrap[OxO15c0[0x13]] ; element[OxO15c0[0x1d]]=inp_tooltip[OxO15c0[0x13]] ; element[OxO15c0[0x1f]]=sel_CellScope[OxO15c0[0x13]] ;if(element[OxO15c0[0x14]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x14]) ;} ;if(element[OxO15c0[0x1f]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x1f]) ;} ;if(element[OxO15c0[0x1e]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x1e]) ;} ;if(element[OxO15c0[0x12]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x12]) ;} ;if(element[OxO15c0[0x15]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x15]) ;} ;if(element[OxO15c0[0x16]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x16]) ;} ;if(element[OxO15c0[0x7]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x7]) ;} ;if(element[OxO15c0[0x18]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x18]) ;} ;if(element[OxO15c0[0x18]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x22]) ;} ;if(element[OxO15c0[0x1b]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x1b]) ;} ;if(element[OxO15c0[0x1c]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x23]) ;} ;if(element[OxO15c0[0x1d]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x1d]) ;} ;if(element[OxO15c0[0x19]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x19]) ;} ;if(element[OxO15c0[0x1a]]==OxO15c0[0xe]){ element.removeAttribute(OxO15c0[0x1a]) ;} ;}  ;if(!Browser_IsWinIE()){ inp_borderColor[OxO15c0[0x24]]=function inp_borderColor_onclick(){ SelectColor(inp_borderColor) ;}  ; inp_bgColor[OxO15c0[0x24]]=function inp_bgColor_onclick(){ SelectColor(inp_bgColor) ;}  ;} ;