Asp.net-fineui Development Practice-4 (ii)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.