www.gusucode.com > 一款经典的Js仿Windows窗口特效集源码程序 > 一款经典的Js仿Windows窗口特效集/仿微软视窗/仿微软视窗/winlike/winman/winxtra.js

    /* WinLIKE 1.4.08 (c) 1998-2005 by CEITON technologies GmbH - www.ceiton.com
   all rights reserved - patent pending */
g_=null;a_=true;F_=false;function recognizeWinLIKE_(a,b,c,d){try{if(b&&b.parent&&b.parent.b_)return b.parent}catch(l_){}if(a.b_)return a;else{try{for(c=0;c<a.frames.length;c++){d=recognizeWinLIKE_(a.frames[c]);if(a.frames[c]&&d)return d}}catch(l_){}}}function getWindowNumber_(){if(recognizeWinLIKE_(top,self).S_>=1.1)return parseInt(frameElement.id.slice(1));else{return document.getElementsByTagName('BODY')[0].name}}function actionWinLIKE_(a,event,b,c){b=recognizeWinLIKE_(top,self);if(b){c=b.document.getElementById('8_');if(c){c.innerHTML=a;c.fireEvent?c.fireEvent('onclick'):c.onclick()}}}function registerWinLIKE_(a,b,c){b=recognizeWinLIKE_(top,self);if(a){b.K_.push(a);b.aD_(a.document,a)}else if(b.S_<1.1){c=ey_();document.getElementsByTagName(b.x_)[0].style.left=c;b.bF_(g_,a_,c)}}function formfocusWinLIKE_(a,b){if(!recognizeWinLIKE_(top,self).WinLIKE.ie)return;a=document.getElementsByTagName('input');for(b=0;b<a.length;b++){if(!a[b].readOnly&&a[b].type!='hidden'){try{a[b].focus()}catch(l_){}break}}}function ey_(){return Math.round(10000*Math.random())}Z_=new Array();function submitWinLIKE_(a,b,c,d,e,f){b=recognizeWinLIKE_(top,"top");b.i_?c=a.srcElement:c=a.target;if(!c||c=='undefined'){c=document.getElementById(a);d=a_}if(c.tagName!='FORM'){e=c;if(c==b.document||c==document)return;c=c.form;f=a_}dd_=c.action;nr=document.getElementsByTagName(b.x_)[0].name;dm_=b.__[nr];dw_=c.target;!c.id?c.id=ey_():0;Q_=c.id;switch(Z_[Q_]){case 1:Z_[Q_]=0;return;case 2:b.i_?Z_[Q_]=3:Z_[Q_]=4;return F_;case 3:Z_[Q_]=4;return;case 4:Z_[Q_]=0;return;case 5:Z_[Q_]=0;return F_}if(dw_){dv_=b.D_(dw_);if(dv_){R_=b.__[dv_];if(b.dQ_(dv_)==0)if(R_.dk_)if(f){Z_[Q_]=5;return F_}else{Z_[Q_]=0;return}if(!R_.dk_||R_.Del||!R_.bH_){b.b_.openaddress(b._A_+'?',g_,dw_,dv_);dv_=b.D_(dw_);R_=b.__[dv_];b.__[dv_].cd_=a_}if(R_.dk_){f?Z_[Q_]=1:document.getElementById(Q_).submit();b.ds_(dd_,nr,dw_)}else{R_.aB_=nr;if(f){dn_=ey_();e.c1_=dn_;R_.c1_=dn_;R_.av_=e.name;Z_[Q_]=2}else R_.aA_=Q_;R_.c8_=dd_;R_.c2_=nr}R_.Mn?b.el_(dv_):0;b.V_(dv_);R_.ct_=a_;if(!d)return F_}else return a_}else{aq_=0;if(b.dQ_(nr)==0)aq_=a_;if(aq_&&!d)return F_;else if(!aq_){dm_.ct_=a_;b.ds_(dd_,nr,dw_);d?document.getElementById(Q_).submit():0}}}