Menus.js
上传用户:q2283699q
上传日期:2022-05-17
资源大小:10704k
文件大小:14k
源码类别:

Ftp客户端

开发平台:

Visual C++

  1. var wwcb=null;var tkx=0;var vrg="";var rlfb=String("cbcb();");var lnt=String("tgqb(");var tj;var rzk=false;function cbcb(){clearTimeout(wwcb);tkx=1;}function tgqb(ylb){tkx=0;wwcb=setTimeout("xccb("+ylb+")",400);}function xccb(ylb){if(ylb==0)qcl();else{qcl();kglb();}}function scc(event){this.raiseEvent("onRowContextMenu",event,this.$0);}function kcd(dkt){var qmf="";var hsf=lgl("SULang")+"";if(hsf.indexOf("ru")!=-1||hsf.indexOf("es")!=-1||hsf.indexOf("fr")!=-1||hsf.indexOf("it")!=-1||hsf.indexOf("jp")!=-1||hsf.indexOf("se")!=-1)qmf="-wide";document.write('<div id="'+dkt+'" class="contextmenu'+qmf+'" style="cursor:pointer;"></div>');if(dkt=="navSubMenu")document.getElementById(dkt).style.zIndex="160001";}function bxqb(rlmb,dkt){var vsv=document.getElementById(dkt);vsv.innerHTML='<table cellpadding="0" cellspacing="0" border="0" style="cursor:pointer;width:100%;">'+rlmb+'</table>';}function nmz(mls,dkt){var vsv=document.getElementById(dkt);var snc,vsr,hvbb,dxbb,flp;if(self.clientWidth){snc=self.innerWidth;vsr=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientWidth){snc=document.documentElement.clientWidth;vsr=document.documentElement.clientHeight;}else if(document.body){snc=document.body.clientWidth;vsr=document.body.clientHeight;}if(self.pageXOffset){hvbb=self.pageXOffset;dxbb=self.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollLeft){hvbb=document.documentElement.scrollLeft;dxbb=document.documentElement.scrollTop;}else if(document.body){hvbb=document.body.scrollLeft;dxbb=document.body.scrollTop;}if((snc-mls.clientX)<vsv.offsetWidth){vsv.style.left=(hvbb+mls.clientX-vsv.offsetWidth)+"px";}else{vsv.style.left=mls.clientX+"px";}if(dxbb>0){vsv.style.top=(dxbb+mls.clientY)+"px";}else{vsv.style.top=mls.clientY+"px";}vsv.style.visibility="visible";}function stj(mls,dkt,kcb,bfgb,nzr){var xks=document.getElementById(dkt);var flp,qkw;flp=phn(document.getElementById(kcb));qkw=document.getElementById(kcb).offsetWidth;wfq=document.getElementById(kcb).offsetHeight;if(dkt=="navSubMenu"){xks.style.left=(flp[0]+qkw+5)+"px";xks.style.top=((flp[1]+(wfq))-(xks.offsetHeight/2))+"px";}else if(bfgb!=undefined&&bfgb==true){xks.style.left=(flp[0]-(xks.offsetWidth-9))+"px";xks.style.top=((flp[1])+15)+"px";}else if(nzr!=undefined&&nzr==true){xks.style.left=(flp[0]+5)+"px";xks.style.top=((flp[1])+15)+"px";}else{xks.style.left=(flp[0]+qkw)+"px";xks.style.top=((flp[1])-(xks.offsetHeight))+"px";}xks.style.visibility="visible";}function tdt(){if(document.getElementById(vrg)){document.getElementById(vrg).style.visibility="hidden";if(!document.removeEventListener){document.detachEvent("onclick",tdt);}else{document.removeEventListener("click",tdt,false);}}}function lrc(xtg){if(document.getElementById("crumb-container"+xtg)){document.getElementById("crumb-container"+xtg).style.visibility="hidden";tj=undefined;if(!document.removeEventListener){document.detachEvent("onclick",function(){lrc(xtg);});}else{document.removeEventListener("click",function(){lrc(xtg);},false);}}}function xqw(xtg){if(document.getElementById("crumb-container"+xtg)){if(!document.addEventListener){document.attachEvent("onclick",function(){lrc(xtg);});}else{document.addEventListener("click",function(){lrc(xtg);},false);}}}function vxy(){if(document.getElementById("crumb-containerHistory-Menu").style.visibility=="visible"){document.getElementById("crumb-containerHistory-Menu").style.visibility="hidden";tj=undefined;if(!document.removeEventListener){document.detachEvent("onclick",vxy);}else{document.removeEventListener("click",vxy,false);}}}function ftnb(){if(document.getElementById("crumb-containerHistory-Menu")){if(!document.addEventListener){document.attachEvent("onclick",vxy);}else{document.addEventListener("click",vxy,false);}}}function kglb(){if(document.getElementById("navMenu")){if(document.getElementById("navMenu").style.visibility=="visible"){document.getElementById("navMenu").style.visibility="hidden";if(!document.removeEventListener){document.detachEvent("onclick",kglb);}else{document.removeEventListener("click",kglb,false);}}}}function qcl(){if(document.getElementById("navSubMenu")){if(document.getElementById("navSubMenu").style.visibility=="visible"){document.getElementById("navSubMenu").style.visibility="hidden";if(!document.removeEventListener){document.detachEvent("onclick",qcl);}else{document.removeEventListener("click",qcl,false);}}}}function zmtb(){if(!document.addEventListener){document.attachEvent("onclick",kglb);}else{document.addEventListener("click",kglb,false);}}function rkz(){if(!document.addEventListener){document.attachEvent("onclick",qcl);}else{document.addEventListener("click",qcl,false);}}function vqy(nkbb,vkwb,bhz,lng,qvdb){if(qvdb==null||qvdb==""||qvdb==undefined)qvdb="ContextMenu";lng.setEvent("oncontextmenu","return false");lng.getRowTemplate().setEvent("oncontextmenu",scc);lng.setController("copypaste",{});lng.onRowContextMenu=function(event,vtvb){lng.setSelectedRows([vtvb]);var gnk='';var ttn;for(ndk=0;(ndk<nkbb.length);ndk++){if(vkwb[ndk]==ydjb){gnk+='<tr><td class="iconcolumn"><div class="iconcell-divider"><img src="'+yxlb+'spacer.gif" width="1" height="1"></div></td><td class="menuItemSep"><img src="'+yxlb+'spacer.gif" width="1" height="1"></td></tr>';}else{if(bhz[ndk]!=""){ftj='<img src="'+yxlb+'spacer.gif" width="1" height="1">';if(typeof bhz[ndk]=="function")yhcb="-"+bhz[ndk]();else yhcb="-"+bhz[ndk];}else{ftj='&nbsp;';yhcb="";}if(typeof vkwb[ndk]=="function")ttn=vkwb[ndk]();else ttn=vkwb[ndk];if(ttn!="")gnk+='<tr onclick="javascript:'+nkbb[ndk]+vtvb+');"  onmouseover="javascript:document.getElementById('contextitem'+qvdb+ndk+'').className='onnavlinkrow'" onmouseout="javascript:'+lnt+');document.getElementById('contextitem'+qvdb+ndk+'').className='offnavlinkrow'"><td class="iconcolumn"><div class="iconcell'+yhcb+'">'+ftj+'</div></td><td class="offnavlinkrow" id="contextitem'+qvdb+ndk+'">'+ttn+'</td></tr>';}}bxqb(gnk,qvdb);nmz(event,qvdb);vrg=qvdb;if(!document.addEventListener){document.attachEvent("onclick",tdt);}else{document.addEventListener("click",tdt,false);}};kcd(qvdb);}function zkb(vkrb,vkwb,bhz,nlc,mrlb,gvh){var czp=new AW.HTML.DIV;var ywtb=swdb;var yhcb="";if(!lpy)wxz=String("vry('");else wxz=String("ksq('");czp.setEvent("onmouseover",function(event){var whw='';if(!document.removeEventListener){document.detachEvent("onclick",kglb);}else{document.removeEventListener("click",kglb,false);}for(ndk=0;(ndk<vkrb.length);ndk++){if(ywtb!="1"&&ndk==1){whw+='<tr onmouseover="javascript:'+rlfb+'" onmouseout="javascript:'+lnt+');"><td class="iconcolumn"><div class="iconcell-divider"><img src="'+yxlb+'spacer.gif" width="1" height="1"></div></td><td class="menuItemSep"><img src="'+yxlb+'spacer.gif" width="1" height="1"></td></tr>';}if((vpq.toLowerCase()!=vkrb[ndk].toLowerCase())||(vkwb[ndk]==ydjb)){if((ywtb=="1"&&ndk!=0)||(ywtb!="1")){if(vkwb[ndk]==ydjb){whw+='<tr onmouseover="javascript:'+rlfb+'" onmouseout="javascript:'+lnt+');"><td class="iconcolumn"><div class="iconcell-divider"><img src="'+yxlb+'spacer.gif" width="1" height="1"></div></td><td class="menuItemSep"><img src="'+yxlb+'spacer.gif" width="1" height="1"></td></tr>';}else{if(typeof(vkwb[ndk])=="object"){gkj="";xwj="";}else{gkj=String("qcl();");xwj=vkwb[ndk];}if(bhz[ndk]!=""){ftj='<img src="'+yxlb+'spacer.gif" width="1" height="1">';yhcb="-"+bhz[ndk];}else{ftj='&nbsp;';yhcb="";}if(typeof(vkwb[ndk])=="object"){whw+='<tr onmouseover="javascript:'+gkj+rlfb+'document.getElementById(''+vkwb[ndk].getId()+'').className='onnavlinkrow'" onmouseout="javascript:'+lnt+');document.getElementById(''+vkwb[ndk].getId()+'').className='offnavlinkrow'"><td class="iconcolumn"><div class="iconcell'+yhcb+'">'+ftj+'</div></td>'+vkwb[ndk]+'</tr>';}else{if(ndk==0)whw+='<tr onclick="javascript:'+vkrb[ndk]+';"  onmouseover="javascript:'+gkj+rlfb+'document.getElementById(''+mrlb+ndk+'').className='onnavlinkrow'" onmouseout="javascript:'+lnt+');document.getElementById(''+mrlb+ndk+'').className='offnavlinkrow'"><td class="iconcolumn"><div class="iconcell'+yhcb+'">'+ftj+'</div></td><td class="offnavlinkrow" id="'+mrlb+ndk+'">'+vkwb[ndk]+'</td></tr>';else whw+='<tr onclick="javascript:'+wxz+dfmb+vkrb[ndk]+'', 1);"  onmouseover="javascript:'+gkj+rlfb+'document.getElementById(''+mrlb+ndk+'').className='onnavlinkrow'" onmouseout="javascript:'+lnt+');document.getElementById(''+mrlb+ndk+'').className='offnavlinkrow'"><td class="iconcolumn"><div class="iconcell'+yhcb+'">'+ftj+'</div></td><td class="offnavlinkrow" id="'+mrlb+ndk+'">'+vkwb[ndk]+'</td></tr>';}}}}}bxqb(whw,"navMenu");stj(event,"navMenu","positionimage");});kcd("navMenu");czp.setEvent("onmouseout",zmtb);czp.setStyle('cursor','pointer');document.getElementById(mrlb).innerHTML=czp;if(gvh!=undefined&&gvh!="")wymb='<img id="positionimage" src="'+yxlb+''+gvh+'" width="16" height="16" alt="'+nlc+'" style="margin:3px 3px 0 0;border:none;"/>';else wymb='&nbsp;';yvd=String("ncx()");document.getElementById(czp.getId()).innerHTML='<table cellpadding="0" cellspacing="0" border="0" style="height:16px;"><tr onmouseover="javascript:'+rlfb+'" onmouseout="javascript:'+lnt+');"><td style="width:20px;white-space:nowrap;">'+wymb+'</td><td style="white-space:nowrap;"><a href="javascript:'+yvd+';" onmouseover="javascript:this.className='onnavlinkbox'" onmouseout="javascript:this.className='offnavlinkbox'" class="offnavlinkbox" style="white-space:nowrap;">'+nlc+'</a></td></tr></table>';return(czp);}function ncx(){kglb();zgsb(dfmb);}function hxhb(vkrb,vkwb,bhz,nlc,mrlb,gvh,hmsb,phsb,jdz){var gvgb=new AW.HTML.TD;var qwb="navSubMenu";var qtgb=false;var wxz;if(phsb)qtgb=true;if(jdz==undefined||jdz==null)jdz=true;if(!jdz)wxz=String("vry('");else wxz=String("ksq('");gvgb.HideSubNavMenu=function(){if(document.getElementById(qwb)){if(document.getElementById(qwb).style.visibility=="visible"){document.getElementById(qwb).style.visibility="hidden";if(!document.removeEventListener)document.detachEvent("onclick",qcl);else document.removeEventListener("click",qcl,false);}}};gvgb.setEvent("onmouseover",function(){var whw='';var rgt=0;for(ndk=0;(ndk<vkrb.length);ndk++){if(vpq.toLowerCase()!=vkrb[ndk].toLowerCase()){if(vkwb[ndk]==ydjb){whw+='<tr onmouseover="javascript:'+rlfb+'" onmouseout="javascript:'+lnt+'0);"><td class="iconcolumn"><div class="iconcell-divider"><img src="'+yxlb+'spacer.gif" width="1" height="1"></div></td><td class="menuItemSep"><img src="'+yxlb+'spacer.gif" width="1" height="1"></td></tr>';}else{if(bhz[ndk]!=""){yhcb="-"+bhz[ndk];}else{yhcb="";}if(!qtgb)rgt++;else rgt=1;whw+='<tr onclick="javascript:'+wxz+dfmb+vkrb[ndk]+'','+(rgt)+');"  onmouseover="javascript:'+rlfb+'document.getElementById(''+mrlb+ndk+'').className='onnavlinkrow'" onmouseout="javascript:'+lnt+'0);document.getElementById(''+mrlb+ndk+'').className='offnavlinkrow'"><td class="iconcolumn"><div class="iconcell'+yhcb+'"><img src="'+yxlb+'spacer.gif" width="1" height="1"></div></td><td class="offnavlinkrow" id="'+mrlb+ndk+'">'+vkwb[ndk]+'</td></tr>';}}}bxqb(whw,qwb);stj("",qwb,mrlb+"PosImg");});kcd(qwb);gvgb.setEvent("onmouseout",rkz);gvgb.setEvent("onclick",function(event){eval(wxz+dfmb+hmsb+"', 1)");qcl();});gvgb.setContent('text','<img id="'+mrlb+'PosImg" src="'+yxlb+'subnav.gif" width="9" height="9" border="0" style="float:right;">'+nlc);gvgb.setStyle('cursor','pointer');gvgb.setClass('subnav','item');return(gvgb);}function gwtb(vkrb,vkwb,mrlb,mbm,gfr,mtmb,nzr){var czp=document.getElementById("crumb"+mrlb);var yhcb="";var yqr=navigator.userAgent||"";if(gfr==0)gfr=1;var whw='';if(!document.removeEventListener){document.detachEvent("onclick",kglb);}else{document.removeEventListener("click",kglb,false);}if(vkrb.length>0){for(ndk=0;(ndk<vkrb.length);ndk++){var whs;if(nzr)whs=String('fvb(''+rqf(vkrb[ndk])+'','+ndk+',true);');else whs=String('fvb(''+rqf(vkrb[ndk])+'','+ndk+',false);');if(vkwb[ndk]==ydjb){whw+='<tr onmouseover="javascript:'+rlfb+'" onmouseout="javascript:'+lnt+');"><td class="iconcolumn" style="height:22px;"><div class="iconcell-divider"><img src="'+yxlb+'spacer.gif" width="1" height="1"></div></td><td class="menuItemSep" style="height:22px;"><img src="'+yxlb+'spacer.gif" width="1" height="1"></td></tr>';}else{gkj="";xwj="";ftj='<img src="'+yxlb+'spacer.gif" width="1" height="1">';if(qxq==ndk&&nzr)yhcb="-pointer-arrow";else yhcb="-"+mbm[ndk];if(mtmb==vkwb[ndk])whw+='<tr title="'+vkwb[ndk]+'"  onmouseover="javascript:'+gkj+rlfb+'document.getElementById(''+mrlb+ndk+'').className='onnavlinkrow'" onmouseout="javascript:'+lnt+');document.getElementById(''+mrlb+ndk+'').className='offnavlinkrow'"><td class="iconcolumn" style="height:22px;"><div title="'+vkwb[ndk]+'" class="iconcell'+yhcb+'">'+ftj+'</div></td><td title="'+vkwb[ndk]+'" class="offnavlinkrow" style="height:22px;" id="'+mrlb+ndk+'">'+vkwb[ndk]+'</td></tr>';else whw+='<tr title="'+vkwb[ndk]+'" onclick="javascript:'+whs+'"  onmouseover="javascript:'+gkj+rlfb+'document.getElementById(''+mrlb+ndk+'').className='onnavlinkrow'" onmouseout="javascript:'+lnt+');document.getElementById(''+mrlb+ndk+'').className='offnavlinkrow'"><td class="iconcolumn" style="height:22px;"><div title="'+vkwb[ndk]+'" class="iconcell'+yhcb+'">'+ftj+'</div></td><td title="'+vkwb[ndk]+'" class="offnavlinkrow" style="height:22px;" id="'+mrlb+ndk+'">'+vkwb[ndk]+'</td></tr>';}}}else whw+='<tr onmouseover="javascript:'+rlfb+'document.getElementById(''+mrlb+'0').className='onnavlinkrow'" onmouseout="javascript:'+lnt+');document.getElementById(''+mrlb+'0').className='offnavlinkrow'"><td class="iconcolumn" style="height:22px;"><div class="iconcell">&nbsp;</div></td><td class="offnavlinkrow" style="height:22px;" id="'+mrlb+'0">'+dkk+'</td></tr>';bxqb(whw,"crumb-container"+mrlb);var zgvb=22;var vww=0;if((yqr.match("Windows NT 6")||yqr.match("Windows NT 6.1"))&&!tk){if(!pqr&&!(navigator.userAgent.indexOf("Opera")>=0))vww=2;zgvb=24;}else if(AW.ie)vww=4;if(gfr<15){document.getElementById("crumb-container"+mrlb).style.height=((zgvb*gfr)+vww)+"px";document.getElementById("crumb-container"+mrlb).style.overflow="hidden";}else document.getElementById("crumb-container"+mrlb).style.height="300px";wymb='&nbsp;';yvd=String("ncx()");}