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

OA系统

开发平台:

C#

  1. var OxOfb9f=["INPUT","TEXTAREA","DIV","SPAN","","contentWindow","innerHTML","body","document","length","type","text","id","isContentEditable","showModalDialog","?","?Modal=true","x26Modal=true","dialogHeight:340px; dialogWidth:395px; edge:Raised; center:Yes; help:No; resizable:Yes; status:No; scroll:No","newWindow","height=300,width=400,scrollbars=no,resizable=no,toolbars=no,status=no,menubar=no,location=no","ElementIndex","dialogArguments","window","opener","value","SpellMode","SpellingForm","end","suggest","start","checkElements","innerText","StatusText","Spell Checking Text ...","CurrentText","WordIndex","Spell Check Complete","selectedIndex","options","ReplacementWord","form"];var showCompleteAlert=true;var tagGroup= new Array(OxOfb9f[0x0],OxOfb9f[0x1],OxOfb9f[0x2],OxOfb9f[0x3]);var checkElements= new Array(); function getText(Ox189){var Ox18a=document.getElementById(checkElements[Ox189]);var Ox18b=OxOfb9f[0x4];var Ox18c=document.getElementById(Ox18a.id);if(Ox18c[OxOfb9f[0x5]]){ Ox18b=Ox18c[OxOfb9f[0x5]][OxOfb9f[0x8]][OxOfb9f[0x7]][OxOfb9f[0x6]] ;} else { Ox18b=Ox18c[OxOfb9f[0x8]][OxOfb9f[0x7]][OxOfb9f[0x6]] ;} ;return Ox18b;}  ; function setText(Ox189,Ox18e){var Ox18a=document.getElementById(checkElements[Ox189]);var Ox18c=document.getElementById(Ox18a.id);if(Ox18c[OxOfb9f[0x5]]){ Ox18c[OxOfb9f[0x5]][OxOfb9f[0x8]][OxOfb9f[0x7]][OxOfb9f[0x6]]=Ox18e ;} else { Ox18c[OxOfb9f[0x8]][OxOfb9f[0x7]][OxOfb9f[0x6]]=Ox18e ;} ;}  ; function checkSpelling(){ checkElements= new Array() ;for(var i=0x0;i<tagGroup[OxOfb9f[0x9]];i++){var Ox190=tagGroup[i];var Ox191=document.getElementsByTagName(Ox190);for(var Ox30=0x0;Ox30<Ox191[OxOfb9f[0x9]];Ox30++){if((Ox190==OxOfb9f[0x0]&&Ox191[Ox30][OxOfb9f[0xa]]==OxOfb9f[0xb])||Ox190==OxOfb9f[0x1]){ checkElements[checkElements[OxOfb9f[0x9]]]=Ox191[Ox30][OxOfb9f[0xc]] ;} else {if((Ox190==OxOfb9f[0x2]||Ox190==OxOfb9f[0x3])&&Ox191[Ox30][OxOfb9f[0xd]]){ checkElements[checkElements[OxOfb9f[0x9]]]=Ox191[Ox30][OxOfb9f[0xc]] ;} ;} ;} ;} ; openSpellChecker() ;}  ; function checkSpellingById(Oxfc,Ox193){ checkElements= new Array() ; checkElements[checkElements[OxOfb9f[0x9]]]=Oxfc ; openSpellChecker(Ox193) ;}  ; function checkElementSpelling(Ox18a){ checkElements= new Array() ; checkElements[checkElements[OxOfb9f[0x9]]]=Ox18a[OxOfb9f[0xc]] ; openSpellChecker() ;}  ; function openSpellChecker(Ox193){if(window[OxOfb9f[0xe]]){var Ox196;if(Ox193.indexOf(OxOfb9f[0xf])==-0x1){ Ox196=OxOfb9f[0x10] ;} else { Ox196=OxOfb9f[0x11] ;} ;var Ox197=window.showModalDialog(Ox193+Ox196,window,OxOfb9f[0x12]);} else {var Ox198=window.open(Ox193,OxOfb9f[0x13],OxOfb9f[0x14]);} ;}  ;var iElementIndex=-0x1;var parentWindow; function initialize(){ iElementIndex=parseInt(document.getElementById(OxOfb9f[0x15]).value) ;if(parent[OxOfb9f[0x17]][OxOfb9f[0x16]]){ parentWindow=parent[OxOfb9f[0x17]][OxOfb9f[0x16]] ;} else {if(top[OxOfb9f[0x18]]){ parentWindow=top[OxOfb9f[0x18]] ;} ;} ;var Ox19c=document.getElementById(OxOfb9f[0x1a])[OxOfb9f[0x19]];switch(Ox19c){case OxOfb9f[0x1e]:break ;case OxOfb9f[0x1d]: updateText() ;break ;case OxOfb9f[0x1c]: updateText() ;default:if(loadText()){ document.getElementById(OxOfb9f[0x1b]).submit() ;} else { endCheck() ;} ;break ;;;;;} ;}  ; function loadText(){if(!parentWindow[OxOfb9f[0x8]]){return false;} ;for( ++iElementIndex ;iElementIndex<parentWindow[OxOfb9f[0x1f]][OxOfb9f[0x9]];iElementIndex++){var Ox19e=parentWindow.getText(iElementIndex);if(Ox19e[OxOfb9f[0x9]]>0x0){ updateSettings(Ox19e,0x0,iElementIndex,OxOfb9f[0x1e]) ; document.getElementById(OxOfb9f[0x21])[OxOfb9f[0x20]]=OxOfb9f[0x22] ;return true;} ;} ;return false;}  ; function updateSettings(Ox1a0,Ox1a1,Ox1a2,Ox1a3){ document.getElementById(OxOfb9f[0x23])[OxOfb9f[0x19]]=Ox1a0 ; document.getElementById(OxOfb9f[0x24])[OxOfb9f[0x19]]=Ox1a1 ; document.getElementById(OxOfb9f[0x15])[OxOfb9f[0x19]]=Ox1a2 ; document.getElementById(OxOfb9f[0x1a])[OxOfb9f[0x19]]=Ox1a3 ;}  ; function updateText(){if(!parentWindow[OxOfb9f[0x8]]){return false;} ;var Ox19e=document.getElementById(OxOfb9f[0x23])[OxOfb9f[0x19]]; parentWindow.setText(iElementIndex,Ox19e) ;}  ; function endCheck(){if(showCompleteAlert){ alert(OxOfb9f[0x25]) ;} ; closeWindow() ;}  ; function closeWindow(){ window.close() ; top.close() ;}  ; function changeWord(Ox18a){var Ox1a8=Ox18a[OxOfb9f[0x26]]; Ox18a[OxOfb9f[0x29]][OxOfb9f[0x28]][OxOfb9f[0x19]]=Ox18a[OxOfb9f[0x27]][Ox1a8][OxOfb9f[0x19]] ;}  ;