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

OA系统

开发平台:

C#

  1. var OxOf658=["string","-1","ok","on","yes","true","1","nodeName","INPUT","TEXTAREA","BUTTON","IMG","SELECT","TABLE","position","style","absolute","relative","|H1|H2|H3|H4|H5|H6|P|PRE|LI|TD|DIV|BLOCKQUOTE|DT|DD|TABLE|HR|IMG|","|","body","document","inp_src","btnbrowse","sel_protocol","inp_target","inp_id","inp_class","inp_access","inp_index","inp_color","inp_title","inp_checked","allanchors","","visibility","hidden","onclick","value","visible","options","length","anchors","OPTION","name","text","#","://",":","others","selectedIndex","href","href_cetemp","x26#","EnableAntiSpamEmailEncoder","id","color","backgroundColor","className","class","title","target","tabIndex","accessKey","innerHTML","mailto:","[[ValidID]]","x3Cpx3Ex26nbsp;x3C/px3E","x3Cpx3Ex26#160;x3C/px3E","x3Cpx3Ex3C/px3E","x3Cdivx3Ex26#160;x3C/divx3E","x3Cdivx3Ex26nbsp;x3C/divx3E","x3Cdivx3Ex3C/divx3E",";"]; function ToBoolean(Ox1be){if( typeof (Ox1be)==OxOf658[0x0]){switch(Ox1be.toLowerCase()){case OxOf658[0x6]:case OxOf658[0x5]:case OxOf658[0x4]:case OxOf658[0x3]:case OxOf658[0x2]:case OxOf658[0x1]:return true;default:return false;;;;;;;;} ;} ;return !!Ox1be;}  ; function Element_IsBlockControl(element){var name=element[OxOf658[0x7]];if(name==OxOf658[0x8]){return true;} ;if(name==OxOf658[0x9]){return true;} ;if(name==OxOf658[0xa]){return true;} ;if(name==OxOf658[0xb]){return true;} ;if(name==OxOf658[0xc]){return true;} ;if(name==OxOf658[0xd]){return true;} ;var Ox182=element[OxOf658[0xf]][OxOf658[0xe]];if(Ox182==OxOf658[0x10]||Ox182==OxOf658[0x11]){return true;} ;return false;}  ; function Element_CUtil_IsBlock(Ox261){var Ox262=OxOf658[0x12];return (Ox261!=null)&&(Ox262.indexOf(OxOf658[0x13]+Ox261[OxOf658[0x7]]+OxOf658[0x13])!=-0x1);}  ; function Window_SelectElement(Ox1bd,element){if(Element_IsBlockControl(element)){var coll=Ox1bd[OxOf658[0x15]][OxOf658[0x14]].createControlRange(); coll.add(element) ; coll.select() ;} else {var range=Ox1bd[OxOf658[0x15]][OxOf658[0x14]].createTextRange(); range.moveToElementText(element) ; range.select() ;} ;}  ;var inp_src=Window_GetElement(window,OxOf658[0x16],true);var btnbrowse=Window_GetElement(window,OxOf658[0x17],true);var sel_protocol=Window_GetElement(window,OxOf658[0x18],true);var inp_target=Window_GetElement(window,OxOf658[0x19],true);var inp_id=Window_GetElement(window,OxOf658[0x1a],true);var inp_class=Window_GetElement(window,OxOf658[0x1b],true);var inp_access=Window_GetElement(window,OxOf658[0x1c],true);var inp_index=Window_GetElement(window,OxOf658[0x1d],true);var inp_color=Window_GetElement(window,OxOf658[0x1e],true);var inp_title=Window_GetElement(window,OxOf658[0x1f],true);var inp_checked=Window_GetElement(window,OxOf658[0x20],true);var allanchors=Window_GetElement(window,OxOf658[0x21],true);var originalInnerHTML=OxOf658[0x22];var BaseHref=editor.GetBaseHref(); allanchors[OxOf658[0xf]][OxOf658[0x23]]=OxOf658[0x24] ; btnbrowse[OxOf658[0x25]]=function btnbrowse_onclick(){ function Ox20e(Ox330){if(Ox330){ inp_src[OxOf658[0x26]]=Ox330 ; SyncTo(element) ;} ;}  ; editor.SetNextDialogWindow(window) ;if(Browser_IsSafari()){ editor.ShowSelectFileDialog(Ox20e,inp_src.value,inp_src) ;} else { editor.ShowSelectFileDialog(Ox20e,inp_src.value) ;} ;}  ; function ToggleAnchors(){if(allanchors[OxOf658[0xf]][OxOf658[0x23]]==OxOf658[0x24]){ allanchors[OxOf658[0xf]][OxOf658[0x23]]=OxOf658[0x27] ;} else { allanchors[OxOf658[0xf]][OxOf658[0x23]]=OxOf658[0x24] ;} ;}  ; function updateList(){while(allanchors[OxOf658[0x28]][OxOf658[0x29]]!=0x0){ allanchors[OxOf658[0x28]].remove(allanchors.options(0x0)) ;} ;for(var i=0x0;i<editdoc[OxOf658[0x2a]][OxOf658[0x29]];i++){var Ox26a=document.createElement(OxOf658[0x2b]); Ox26a[OxOf658[0x2d]]=OxOf658[0x2e]+editdoc[OxOf658[0x2a]][i][OxOf658[0x2c]] ; Ox26a[OxOf658[0x26]]=editdoc[OxOf658[0x2a]][i][OxOf658[0x2c]] ; allanchors[OxOf658[0x28]].add(Ox26a) ;} ;}  ; function selectAnchor(Ox26c){ editor.FocusDocument() ;for(var i=0x0;i<editdoc[OxOf658[0x2a]][OxOf658[0x29]];i++){if(editdoc[OxOf658[0x2a]][i][OxOf658[0x2c]]==Ox26c){ inp_src[OxOf658[0x26]]=OxOf658[0x2e]+Ox26c ; Window_SelectElement(editwin,editdoc[OxOf658[0x2a]][i]) ;} ;} ;}  ; function sel_protocol_change(){var src=inp_src[OxOf658[0x26]].replace(/$s*/,OxOf658[0x22]);for(var i=0x0;i<sel_protocol[OxOf658[0x28]][OxOf658[0x29]];i++){var Ox60=sel_protocol[OxOf658[0x28]][i][OxOf658[0x26]];if(src.substr(0x0,Ox60.length).toLowerCase()==Ox60){ src=src.substr(Ox60[OxOf658[0x29]],src[OxOf658[0x29]]-Ox60.length) ;break ;} ;} ;var Ox332=src.indexOf(OxOf658[0x2f]);if(Ox332!=-0x1){ src=src.substr(Ox332+0x3,src[OxOf658[0x29]]-0x3-Ox332) ;} ;var Ox332=src.indexOf(OxOf658[0x30]);if(Ox332!=-0x1){ src=src.substr(Ox332+0x1,src[OxOf658[0x29]]-0x1-Ox332) ;} ;var Ox333=sel_protocol[OxOf658[0x26]];if(Ox333==OxOf658[0x31]){ Ox333=OxOf658[0x22] ;} ; inp_src[OxOf658[0x26]]=Ox333+src ;}  ; function Update_sel_protocol(src){var Ox335=false;for(var i=0x0;i<sel_protocol[OxOf658[0x28]][OxOf658[0x29]];i++){var Ox60=sel_protocol[OxOf658[0x28]][i][OxOf658[0x26]];if(src.substr(0x0,Ox60.length).toLowerCase()==Ox60){if(sel_protocol[OxOf658[0x32]]!=i){ sel_protocol[OxOf658[0x32]]=i ;} ; Ox335=true ;break ;} ;} ;if(!Ox335){ sel_protocol[OxOf658[0x32]]=sel_protocol[OxOf658[0x28]][OxOf658[0x29]]-0x1 ;} ;}  ; UpdateState=function UpdateState_A(){}  ; SyncToView=function SyncToView_A(){var src=OxOf658[0x22];if(element.getAttribute(OxOf658[0x33])){ src=element.getAttribute(OxOf658[0x33]) ;} ;if(element.getAttribute(OxOf658[0x34])){ src=element.getAttribute(OxOf658[0x34]) ;} ;if(src){if(ToBoolean(editor.GetScriptProperty(OxOf658[0x36]))&&(element[OxOf658[0x33]]).indexOf(OxOf658[0x35])!=-0x1){ src=decode(src) ;} else {if(BaseHref!=null&&BaseHref!=OxOf658[0x22]){if(src.toLowerCase().substr(0x0,BaseHref[OxOf658[0x29]]+0x1)==BaseHref+OxOf658[0x2e]){ src=src.substring(BaseHref.length) ;} ;} ;} ;} ; Update_sel_protocol(src) ;if(element[OxOf658[0x37]]){ inp_id[OxOf658[0x26]]=element[OxOf658[0x37]] ;} ;if(src){ inp_src[OxOf658[0x26]]=src ;} ;if(element[OxOf658[0xf]][OxOf658[0x38]]){ inp_color[OxOf658[0x26]]=revertColor(element[OxOf658[0xf]].color) ; inp_color[OxOf658[0xf]][OxOf658[0x39]]=inp_color[OxOf658[0x26]] ;} ;if(element[OxOf658[0x3a]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x3a]) ;} ;if(element[OxOf658[0x3a]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x3b]) ;} ;if(element[OxOf658[0x3c]]){ inp_title[OxOf658[0x26]]=element[OxOf658[0x3c]] ;} ;if(element[OxOf658[0x3d]]){ inp_target[OxOf658[0x26]]=element[OxOf658[0x3d]] ;} ;if(element[OxOf658[0x3e]]){ inp_index[OxOf658[0x26]]=element[OxOf658[0x3e]] ;} ;if(element[OxOf658[0x3f]]){ inp_access[OxOf658[0x26]]=element[OxOf658[0x3f]] ;} ; originalInnerHTML=element[OxOf658[0x40]] ;}  ; SyncTo=function SyncTo_A(element){if(sel_protocol[OxOf658[0x26]]==OxOf658[0x41]&&ToBoolean(editor.GetScriptProperty(OxOf658[0x36]))){ element[OxOf658[0x33]]=obfuscate(inp_src.value) ; element.setAttribute(OxOf658[0x34],inp_src.value) ; Update_sel_protocol(decode(element[OxOf658[0x33]].replace(/$s*/,OxOf658[0x22]))) ;} else { element[OxOf658[0x33]]=inp_src[OxOf658[0x26]] ; element.setAttribute(OxOf658[0x34],inp_src.value) ; Update_sel_protocol(element[OxOf658[0x33]].replace(/$s*/,OxOf658[0x22])) ;} ;try{ element[OxOf658[0xf]][OxOf658[0x38]]=inp_color[OxOf658[0x26]]||OxOf658[0x22] ;} catch(x){ element[OxOf658[0xf]][OxOf658[0x38]]=OxOf658[0x22] ;} ; element[OxOf658[0x3a]]=inp_class[OxOf658[0x26]] ; element[OxOf658[0x3d]]=inp_target[OxOf658[0x26]] ; element[OxOf658[0x3c]]=inp_title[OxOf658[0x26]] ; element[OxOf658[0x3e]]=inp_index[OxOf658[0x26]] ; element[OxOf658[0x3f]]=inp_access[OxOf658[0x26]] ; element[OxOf658[0x37]]=inp_id[OxOf658[0x26]] ;if(element[OxOf658[0x37]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x37]) ;} ;if(element[OxOf658[0x3c]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x3c]) ;} ;if(element[OxOf658[0x3d]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x3d]) ;} ;if(element[OxOf658[0x3a]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x3a]) ;} ;if(element[OxOf658[0x3a]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x3b]) ;} ;if(element[OxOf658[0x3e]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x3e]) ;} ;if(element[OxOf658[0x3f]]==OxOf658[0x22]){ element.removeAttribute(OxOf658[0x3f]) ;} ;var Ox268=/[^a-zd]/i;if(Ox268.test(inp_id.value)){ alert(OxOf658[0x42]) ;return ;} ;var Ox98=element[OxOf658[0x40]];switch(Ox98.toLowerCase()){case OxOf658[0x48]:case OxOf658[0x47]:case OxOf658[0x46]:case OxOf658[0x45]:case OxOf658[0x44]:case OxOf658[0x43]: element[OxOf658[0x40]]=OxOf658[0x22] ;break ;default:break ;;;;;;;;} ;if(originalInnerHTML==OxOf658[0x22]){ element[OxOf658[0x40]]=element[OxOf658[0x3c]]||element[OxOf658[0x33]]||element[OxOf658[0x2c]] ;} ;}  ; function obfuscate(Ox381){var Ox382=OxOf658[0x22];if(Ox381[OxOf658[0x29]]>0x0){for(var i=0x0;i<Ox381[OxOf658[0x29]];i++){ Ox382+=OxOf658[0x35]+Ox381.charCodeAt(i)+OxOf658[0x49] ;} ;} ;return (Ox382);}  ; function decode(Ox384){var Ox385=OxOf658[0x22];var arr=Ox384.split(OxOf658[0x49]);for(var i=0x0;i<arr[OxOf658[0x29]];i++){var Ox25=arr[i].substr(0x2,arr[i][OxOf658[0x29]]-0x2); Ox25=String.fromCharCode(Ox25) ; Ox385+=Ox25 ;} ;return (Ox385);}  ; updateList() ;if(!Browser_IsWinIE()){ inp_color[OxOf658[0x25]]=function inp_color_onclick(){ SelectColor(inp_color) ;}  ;} ;