show popup

piaoling  2012-11-23 16:41:56
wogerWarningPopup = {
    inBody: false,
    popupNode: '<div id="jqmWarningPopup" class="jqmWindow"><div class="jqmClose"></div><div class="jqmnContent"></div></div>',
    init: function(){
        $('body').append($(this.popupNode));
    },
    show: function(title, message){
        if(!this.inBody){
            this.init();
            this.inBody = true;
        }
        $('#jqmWarningPopup .jqmnTitle').html(title);
        $('#jqmWarningPopup .jqmnContent').html(message);
        $('#jqmWarningPopup').jqm().jqmShow();
    }
}
wogerWarningPopup.show('mytest','messages');
类别 :  默认(739)  |  浏览(3874)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: