Dialog_InsertGallery.js
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:6k
- var OxOdf1b=["Form1","FoldersAndFiles","Image1","FolderDescription","cbThumbSize","cbColumns","cbRows","cbTypes","cbSorts","ThumbList1_MyList","ThumbList1_hdnCurPage","ThumbList1_hdnPrevPath","hiddenAlert","lightyellow","0px","-3px","value","","onload","all","getElementById","x3Cdiv id=x22tooltipdivx22 style=x22visibility:hidden;background-color:","x22 x3Ex3C/divx3E","tooltipdiv","left","offsetLeft","offsetTop","offsetParent","top","style","type","visibility","click","mouseover","compatMode","BackCompat","documentElement","body","rightedge","opera","clientWidth","scrollLeft","innerWidth","pageXOffset","offsetWidth","contentmeasure","x","clientHeight","scrollTop","innerHeight","pageYOffset","offsetHeight","y","innerHTML","visible","hidden","px","bottomedge","undefined","hidetip()","element","editor","editdoc","^[a-z]*:[/][/][^/]*","src","height","width","IMG","border","alt","product","Gecko","src_cetemp","Edit","dialogWidth","availWidth","dialogHeight","availHeight"];var Form1=Window_GetElement(window,OxOdf1b[0x0],true);var FoldersAndFiles=Window_GetElement(window,OxOdf1b[0x1],true);var Image1=Window_GetElement(window,OxOdf1b[0x2],true);var FolderDescription=Window_GetElement(window,OxOdf1b[0x3],true);var cbThumbSize=Window_GetElement(window,OxOdf1b[0x4],true);var cbColumns=Window_GetElement(window,OxOdf1b[0x5],true);var cbRows=Window_GetElement(window,OxOdf1b[0x6],true);var cbTypes=Window_GetElement(window,OxOdf1b[0x7],true);var cbSorts=Window_GetElement(window,OxOdf1b[0x8],true);var ThumbList1_MyList=Window_GetElement(window,OxOdf1b[0x9],true);var ThumbList1_hdnCurPage=Window_GetElement(window,OxOdf1b[0xa],true);var ThumbList1_hdnPrevPath=Window_GetElement(window,OxOdf1b[0xb],true);var hiddenAlert=Window_GetElement(window,OxOdf1b[0xc],true);var tipbgcolor=OxOdf1b[0xd];var disappeardelay=0xfa;var vertical_offset=OxOdf1b[0xe];var horizontal_offset=OxOdf1b[0xf];var delayhidetimerid; function reset_hiddens(){if(hiddenAlert[OxOdf1b[0x10]]){ alert(hiddenAlert.value) ;} ; hiddenAlert[OxOdf1b[0x10]]=OxOdf1b[0x11] ;} ; Event_Attach(window,OxOdf1b[0x12],reset_hiddens) ;var ie4=document[OxOdf1b[0x13]];var ns6=document[OxOdf1b[0x14]]&&!document[OxOdf1b[0x13]];if(ie4||ns6){ document.write(OxOdf1b[0x15]+tipbgcolor+OxOdf1b[0x16]) ;var dropmenuobj=Window_GetElement(window,OxOdf1b[0x17],true);} ; function getposOffset(Oxab,Oxac){var Oxad=(Oxac==OxOdf1b[0x18])?Oxab[OxOdf1b[0x19]]:Oxab[OxOdf1b[0x1a]];var Oxae=Oxab[OxOdf1b[0x1b]];while(Oxae!=null){ Oxad+=(Oxac==OxOdf1b[0x18])?Oxae[OxOdf1b[0x19]]:Oxae[OxOdf1b[0x1a]] ; Oxae=Oxae[OxOdf1b[0x1b]] ;} ;return Oxad;} ; function showhide(obj,Oxb0,Oxb1,Oxb2){if(ie4||ns6){ dropmenuobj[OxOdf1b[0x1d]][OxOdf1b[0x18]]=dropmenuobj[OxOdf1b[0x1d]][OxOdf1b[0x1c]]=-0x1f4 ;} ;if(Oxb0[OxOdf1b[0x1e]]==OxOdf1b[0x20]&&obj[OxOdf1b[0x1f]]==Oxb2||Oxb0[OxOdf1b[0x1e]]==OxOdf1b[0x21]){ obj[OxOdf1b[0x1f]]=Oxb1 ;} else {if(Oxb0[OxOdf1b[0x1e]]==OxOdf1b[0x20]){ obj[OxOdf1b[0x1f]]=Oxb2 ;} ;} ;} ; function iecompattest(){return (document[OxOdf1b[0x22]]&&document[OxOdf1b[0x22]]!=OxOdf1b[0x23])?document[OxOdf1b[0x24]]:document[OxOdf1b[0x25]];} ; function clearbrowseredge(obj,Oxb5){var Oxb6=(Oxb5==OxOdf1b[0x26])?parseInt(horizontal_offset)*-0x1:parseInt(vertical_offset)*-0x1;if(Oxb5==OxOdf1b[0x26]){var Oxb7=ie4&&!window[OxOdf1b[0x27]]?iecompattest()[OxOdf1b[0x29]]+iecompattest()[OxOdf1b[0x28]]-0xf:window[OxOdf1b[0x2b]]+window[OxOdf1b[0x2a]]-0xf; dropmenuobj[OxOdf1b[0x2d]]=dropmenuobj[OxOdf1b[0x2c]] ;if(Oxb7-dropmenuobj[OxOdf1b[0x2e]]<dropmenuobj[OxOdf1b[0x2d]]){ Oxb6=dropmenuobj[OxOdf1b[0x2d]]-obj[OxOdf1b[0x2c]] ;} ;} else {var Oxb7=ie4&&!window[OxOdf1b[0x27]]?iecompattest()[OxOdf1b[0x30]]+iecompattest()[OxOdf1b[0x2f]]-0xf:window[OxOdf1b[0x32]]+window[OxOdf1b[0x31]]-0x12; dropmenuobj[OxOdf1b[0x2d]]=dropmenuobj[OxOdf1b[0x33]] ;if(Oxb7-dropmenuobj[OxOdf1b[0x34]]<dropmenuobj[OxOdf1b[0x2d]]){ Oxb6=dropmenuobj[OxOdf1b[0x2d]]+obj[OxOdf1b[0x33]] ;} ;} ;return Oxb6;} ; function showTooltip(Oxb9,obj,Oxb0){ Event_CancelEvent() ; clearhidetip() ; dropmenuobj[OxOdf1b[0x35]]=Oxb9 ;if(ie4||ns6){ showhide(dropmenuobj.style,Oxb0,OxOdf1b[0x36],OxOdf1b[0x37]) ; dropmenuobj[OxOdf1b[0x2e]]=getposOffset(obj,OxOdf1b[0x18]) ; dropmenuobj[OxOdf1b[0x34]]=getposOffset(obj,OxOdf1b[0x1c]) ; dropmenuobj[OxOdf1b[0x1d]][OxOdf1b[0x18]]=dropmenuobj[OxOdf1b[0x2e]]-clearbrowseredge(obj,OxOdf1b[0x26])+OxOdf1b[0x38] ; dropmenuobj[OxOdf1b[0x1d]][OxOdf1b[0x1c]]=dropmenuobj[OxOdf1b[0x34]]-clearbrowseredge(obj,OxOdf1b[0x39])+obj[OxOdf1b[0x33]]+OxOdf1b[0x38] ;} ;} ; function hidetip(Oxb0){if( typeof dropmenuobj!=OxOdf1b[0x3a]){if(ie4||ns6){ dropmenuobj[OxOdf1b[0x1d]][OxOdf1b[0x1f]]=OxOdf1b[0x37] ;} ;} ;} ; function delayhidetip(){if(ie4||ns6){ delayhidetimerid=setTimeout(OxOdf1b[0x3b],disappeardelay) ;} ;} ; function clearhidetip(){ clearTimeout(delayhidetimerid) ;} ; function cancel(){ Window_CloseDialog(window) ;} ;var obj=Window_GetDialogArguments(window);var element=obj[OxOdf1b[0x3c]];var editor=obj[OxOdf1b[0x3d]];var editdoc=obj[OxOdf1b[0x3e]]; function insert(src){if(src){var Ox280=src.replace( new RegExp(OxOdf1b[0x3f],OxOdf1b[0x11]),OxOdf1b[0x11]); function Actualsize(){var Oxde= new Image(); Oxde[OxOdf1b[0x40]]=Ox280 ;if(Oxde[OxOdf1b[0x42]]>0x0&&Oxde[OxOdf1b[0x41]]>0x0){ element[OxOdf1b[0x42]]=Oxde[OxOdf1b[0x42]] ; element[OxOdf1b[0x41]]=Oxde[OxOdf1b[0x41]] ;} else { setTimeout(Actualsize,0x190) ;} ;} ;if(element){ element[OxOdf1b[0x40]]=Ox280 ;} else { element=editdoc.createElement(OxOdf1b[0x43]) ; element[OxOdf1b[0x40]]=Ox280 ; element[OxOdf1b[0x44]]=0x0 ; element[OxOdf1b[0x45]]=OxOdf1b[0x11] ; Actualsize() ;} ;if(navigator[OxOdf1b[0x46]]==OxOdf1b[0x47]){try{ element.setAttribute(OxOdf1b[0x48],Ox280) ;} catch(e){} ;} else {if(editor.GetActiveTab()==OxOdf1b[0x49]){ element.setAttribute(OxOdf1b[0x48],Ox280) ;} ;} ; editor.InsertElement(element) ; Window_CloseDialog(window) ;} ;} ;try{if(Browser_IsWinIE()){ window.moveTo((screen[OxOdf1b[0x4b]]-self[OxOdf1b[0x4a]])/0x2,(screen[OxOdf1b[0x4d]]-self[OxOdf1b[0x4c]])/0x2) ;} else { window.moveTo((screen[OxOdf1b[0x4b]]-self[OxOdf1b[0x2a]])/0x2,(screen[OxOdf1b[0x4d]]-self[OxOdf1b[0x31]])/0x2) ;} ;} catch(x){} ;