Found on the Internet, experiment with the window pop-up and close the animation effect to share a bit.
After the last code
Default.js
window_tips.animcollapse= true;//Open animation effect Window_tips.animatetarget = Ext.getbody ();//start positioning, that is, where to locate, is a el,= button is also OK
Ext-part2.js
F_showtips:function plus Window_tips.on (' beforehide ', this.f_hidetips);//register closed pre-event
Display a reminder form; Iframeurl the URL of the form, currently does not consider transmitting '; WindowTitle the title of the form, currently not considered "; The txthtml form shows the width of the data//width form, which is not currently considered "; Height of the form, not currently considered "; F_showtips:function (Iframeurl, windowtitle,txthtml, width, height) {if (typeof (iframeurl) = = = ' undefined ') { Iframeurl = This.f_iframe_url; } if (typeof (windowtitle) = = = ' undefined ') {windowtitle = This.title; window.label_html=txthtml;//display data to the global parameter window.label_html_num=0;//first open reset view to the number of this.f_ Showtips_label (label_html);//display method, incoming data This.on (' Beforehide ', this.f_hidetips);//Register pre-shutdown event This.on (' Beforeshow ', this.f_beforshowtips); windowtitle= "Message reminder" + "" + (label_html_num+1) + "/" +txthtml.length;//spelling title//original Show Method F.wnd.show (this, IFR Ameurl, WindowTitle, This.f_property_left, This.f_property_top, this.f_property_position, this.id + ' _Hidden ', width, height); },
F_hidetips:function () { var = this; if (Self.hidden) {return false;} Hide does not execute $ ("#window_tips_wrapper. X-ie-shadow"). CSS ("display", "none");//Shadow writes dead $ ("#window_tips_wrapper. X-shim "). CSS (" display "," none ");//write Dead self.el.slideOut (' R ', {duration:1000});//Animation R is the right meaning, the back is the time self.hidden=true;//Hide Property return false;//do not execute default hide },
Asp.net-fineui Development Practice-4 (ii)