为jquery消息框添加效果和动画 [英] add effects and animation for jquery message box

查看:111
本文介绍了为jquery消息框添加效果和动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

heyy ..



我在源代码中使用了一个jquery消息框。我想要动画并添加效果给它..任何解决方案。 ... ??



这是我的留言箱js: -



heyy..

I am using a jquery message box in the source code .I want this to be animated and add effects to it.. Any solution ....??

here is my Message Box js :-

function MessageBox(Messgae,FocusingControl) {
 $("#modal_dialog").text(Messgae);

    $("#modal_dialog").dialog({
        title: 'Eastern',
        position: 'center',
        open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
        closeOnEscape: false,
        buttons: {
            Close: function() {
            //$('#equipementIDN_direct').focus();
                $(this).dialog('close');
              if(FocusingControl!='')
              {
                 FocusingControl.focus();
                 }

          }

        },
        modal: true

    });


}





以上代码是我的消息框js





我在下面的代码中使用此消息框 -





Above code is my message box js


I use this message box in below code -

function ValidateTelephoneNumber() {

        var a = $("input[attr-identity=txtPhoneNo]").val();
        if (a.charAt(0) == "0") {
            if (a.charAt(1) == "0") {
                if (a.charAt(2) == "0") {
                    MessageBox("Given Phone number format is not correct", $("input[attr-identity=txtPhoneNo]"));
                    $("input[attr-identity=txtPhoneNo]").val('');
                }
            }
        }


    }







我们如何将效果和动画应用于ir?




How we can apply effects and animations to ir??

推荐答案

#modal_dialog)。text(Messgae);
("#modal_dialog").text(Messgae);


#modal_dialog)。dialog({
title:' Eastern'
position:' center'
open:function( event ,ui){
("#modal_dialog").dialog({ title: 'Eastern', position: 'center', open: function(event, ui) {


。ui-dialog-titlebar-close)。hide();},
closeOnEscape: false
按钮:{
关闭:function(){
//
(".ui-dialog-titlebar-close").hide(); }, closeOnEscape: false, buttons: { Close: function() { //


这篇关于为jquery消息框添加效果和动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆