var remove={ init:function(obj){ this.init.title=obj.title; this.init.func = obj.func; this.init.msg = obj.msg; this.init.ok = obj.ok; this.init.cancel = obj.cancel; if(typeof(this.init.ok) == "undefined"){ this.init.ok = "确定"; } if(typeof(this.init.cancel) == "undefined"){ this.init.cancel = "取消" ; } }, show:function(){ if(window.top!=window.self){ $("body",top.document).append('

'+window.top.remove.init.title+'

'); console.log(typeof(window.top.remove.init.msg)); if(typeof(window.top.remove.init.msg) != "undefined"){ $(".mb_content_l").before('

'+window.top.remove.init.msg+'

'); } }else{ if($(".loading").length==0) { console.log(typeof(window.top.remove.init.msg)); $("body").append('

'+window.top.remove.init.title+'

'); if(typeof(window.top.remove.init.msg) != "undefined"){ $(".mb_content_l").before('

'+window.top.remove.init.msg+'

'); } } } }, remove:function(){ if(window.top!=window.self){ $(".remove",top.document).remove(); }else{ if($(".remove").length>0) $(".remove").remove(); } } }