ASP.NET-FineUI開發實踐-4(二)

來源:互聯網
上載者:User

標籤:blog   http   io   os   ar   for   資料   sp   div   

在網上找了找,實驗了一下window彈出和關閉的動畫效果分享一下。

接上次的代碼

default.js 

          window_tips.animCollapse= true;//開啟動畫效果    window_tips.animateTarget = Ext.getBody();//開始的定位,就是以哪定位,是個el,=按鈕 也行

  

ext-part2.js

f_showTips: function裡加上 window_tips.on(‘beforehide‘, this.f_hideTips);//註冊關閉前事件

      //顯示提醒表單;     //iframeUrl表單的url,目前未考慮傳‘‘;     //windowTitle表單的title,目前未考慮傳‘‘;     //txthtml表單顯示的資料     //width表單的寬,目前未考慮傳‘‘;     //height表單的高,目前未考慮傳‘‘;     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;//顯示資料存到全域參數裡            window.label_html_num=0;//第一次開啟重設查看到第幾條            this.f_showtips_label(label_html);//顯示方法,傳入資料                         this.on(‘beforehide‘, this.f_hideTips);//註冊關閉前事件            //this.on(‘beforeshow‘, this.f_beforshowTips);            windowTitle="訊息提醒"+"   "+(label_html_num+1)+"/"+txthtml.length;//拼字標題            //原show方法            F.wnd.show(this, iframeUrl, windowTitle, this.f_property_left, this.f_property_top, this.f_property_position, this.id + ‘_Hidden‘, width, height);        },

  

 

f_hideTips: function () {            var self = this;            if (self.hidden) { return false; }//隱藏就不執行            $("#window_tips_wrapper .x-ie-shadow").css("display","none");//陰影寫死了            $("#window_tips_wrapper .x-shim").css("display","none");//寫死了            self.el.slideOut(‘r‘,{ duration: 1000});//動畫 r 是右的意思,後面的是時間            self.hidden=true;//隱藏屬性            return false; //不執行預設的hide        },

  

ASP.NET-FineUI開發實踐-4(二)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.