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

OA系统

开发平台:

C#

  1. var OxOab22=["formSearch","idSource","inc_width","inc_height","W640","W800","W1024","onload","availWidth","screen","window","availHeight","contentWindow","outerHTML","documentElement","text/html","replace","onresize","dialogWidth","value","dialogHeight","innerWidth","innerHeight","px","dialogTop","dialogLeft","screenY","screenX","checked","contentDocument","document"];var formSearch=Window_GetElement(window,OxOab22[0x0],true);var idSource=Window_GetElement(window,OxOab22[0x1],true);var inc_width=Window_GetElement(window,OxOab22[0x2],true);var inc_height=Window_GetElement(window,OxOab22[0x3],true);var W640=Window_GetElement(window,OxOab22[0x4],true);var W800=Window_GetElement(window,OxOab22[0x5],true);var W1024=Window_GetElement(window,OxOab22[0x6],true);var ParentW;var ParentH; window[OxOab22[0x7]]=function window_onload(){ ParentW=top[OxOab22[0xa]][OxOab22[0x9]][OxOab22[0x8]] ; ParentH=top[OxOab22[0xa]][OxOab22[0x9]][OxOab22[0xb]] ;var iframe=idSource[OxOab22[0xc]];var editdoc=Window_GetDialogArguments(window);var Ox154;if(Browser_IsWinIE()){ Ox154=editdoc[OxOab22[0xe]][OxOab22[0xd]] ;} else { Ox154=outerHTML(editdoc.documentElement) ;} ;var Ox362=Frame_GetContentDocument(iframe); Ox362.open(OxOab22[0xf],OxOab22[0x10]) ; Ox362.write(Ox154) ; Ox362.close() ; ShowSizeInfo() ;}  ; window[OxOab22[0x11]]=ShowSizeInfo ; function ShowSizeInfo(){if(Browser_IsWinIE()){ inc_width[OxOab22[0x13]]=self[OxOab22[0x12]] ; inc_height[OxOab22[0x13]]=self[OxOab22[0x14]] ;} else { inc_width[OxOab22[0x13]]=self[OxOab22[0x15]] ; inc_height[OxOab22[0x13]]=self[OxOab22[0x16]] ;} ;}  ; function do_cancel(){ Window_CloseDialog(window) ;}  ; function ResizeThis(Ox33,Ox29){if(Browser_IsWinIE()){ self[OxOab22[0x12]]=Ox33+OxOab22[0x17] ; self[OxOab22[0x14]]=Ox29+OxOab22[0x17] ;var Ox365=ParentW/0x2-Ox33/0x2;var Ox1bf=ParentH/0x2-Ox29/0x2; self[OxOab22[0x18]]=Ox1bf+OxOab22[0x17] ; self[OxOab22[0x19]]=Ox365+OxOab22[0x17] ;} else {if(Browser_IsGecko()){ self[OxOab22[0x15]]=Ox33 ; self[OxOab22[0x16]]=Ox29 ;var Ox365=ParentW/0x2-Ox33/0x2;var Ox1bf=ParentH/0x2-Ox29/0x2; self[OxOab22[0x1a]]=Ox1bf ; self[OxOab22[0x1b]]=Ox365 ;} else { window.resizeTo(Ox33,Ox29) ;if((screen[OxOab22[0x8]]-Ox33>0x0)&&(screen[OxOab22[0xb]]-Ox29>0x0)){ window.moveTo((screen[OxOab22[0x8]]-Ox33)/0x2,(screen[OxOab22[0xb]]-Ox29)/0x2) ;} ;} ;} ;switch(Ox33){case 0x280: W640[OxOab22[0x1c]]=true ;break ;case 0x320: W800[OxOab22[0x1c]]=true ;break ;case 0x400: W1024[OxOab22[0x1c]]=true ;break ;;;;} ;}  ; function Frame_GetContentDocument(Ox23b){if(Ox23b[OxOab22[0x1d]]){return Ox23b[OxOab22[0x1d]];} ;return Ox23b[OxOab22[0x1e]];}  ;