confirm.js 2.7 KB

1
  1. UI.extend.confirm=function(a,b,c,d){a='\x3cdiv class\x3d"pup_upbox width265" id\x3d"pup_upbox" style\x3d"display:none"\x3e\t\x3cdiv class\x3d"pup_uptitle"\x3e\t\t\x3cp class\x3d"icon_align"\x3e\t\t\t\x3ci class\x3d"icon_skin pup_titleicon"\x3e\x3c/i\x3e\t\t\t\x3cspan class\x3d"pup_titlename"\x3e\u63d0\u793a\x3c/span\x3e\t\t\x3c/p\x3e\t\t\x3cspan class\x3d"icon_skin pup_close"\x3e\x3c/span\x3e\t\x3c/div\x3e\t\x3cdiv class\x3d"pup_content"\x3e'+a+'\t\x3c/div\x3e\t\x3cdiv class\x3d"pup_footer"\x3e\t\t\x3cdiv class\x3d"pup_footercontert clearfix"\x3e\t\t\t\x3ca class\x3d"fr mr15px mt1px" href\x3d"javascript:void(0);" onclick\x3d"return false;"\x3e\x3cspan class\x3d"web_skin grayleft_addbtn pad_lr"\x3e\u5426\x3c/span\x3e\x3cspan class\x3d"web_skin grayright_addbtn"\x3e\x3c/span\x3e\x3c/a\x3e\t\t\t \x3ca class\x3d"fr mr15px mt1px" href\x3d"javascript:void(0);" onclick\x3d"return false;"\x3e\x3cspan class\x3d"web_skin blueleft_btn pad_lr"\x3e\u662f\x3c/span\x3e\x3cspan class\x3d"web_skin blueright_btn"\x3e\x3c/span\x3e\x3c/a\x3e\t\t\x3c/div\x3e\t\x3c/div\x3e\x3c/div\x3e';document.getElementById("pup_upbox")&&$("#pup_upbox").remove();$("body").append(a);$("#pup_upbox").ui("dialog",{close:".grayleft_addbtn,.pup_close"}).find(".blueleft_btn").click(function(){"function"==typeof b?b(function(a){a&&$("#pup_upbox").closeDialog()}):$("#pup_upbox").closeDialog()});$("#pup_upbox").find(".grayleft_addbtn").click(function(){"function"==typeof c&&c()});$("#pup_upbox").find(".pup_close").click(function(){"function"==typeof d&&d()})};UI.extend.alert=function(a,b,c){a='\x3cdiv class\x3d"pup_upbox width265" id\x3d"pup_upbox" style\x3d"display:none"\x3e\t\x3cdiv class\x3d"pup_uptitle"\x3e\t\t\x3cp class\x3d"icon_align"\x3e\t\t\t\x3ci class\x3d"icon_skin pup_titleicon"\x3e\x3c/i\x3e\t\t\t\x3cspan class\x3d"pup_titlename"\x3e\u63d0\u793a\x3c/span\x3e\t\t\x3c/p\x3e\t\t\x3cspan class\x3d"icon_skin pup_close"\x3e\x3c/span\x3e\t\x3c/div\x3e\t\x3cdiv class\x3d"pup_content"\x3e'+a+'\t\x3c/div\x3e\t\x3cdiv class\x3d"pup_footer"\x3e\t\t\x3cdiv class\x3d"pup_footercontert clearfix" style\x3d"text-align:center;"\x3e\t\t\t \x3ca class\x3d"mt1px" href\x3d"javascript:void(0);" onclick\x3d"return false;" style\x3d"display:inline-block;height:24px;margin-left:15px"\x3e\x3cspan class\x3d"web_skin blueleft_btn pad_lr"\x3e\u662f\x3c/span\x3e\x3cspan class\x3d"web_skin blueright_btn" style\x3d"width:4px !important;"\x3e\x3c/span\x3e\x3c/a\x3e\t\t\x3c/div\x3e\t\x3c/div\x3e\x3c/div\x3e';document.getElementById("pup_upbox")&&$("#pup_upbox").remove();$("body").append(a);$("#pup_upbox").ui("dialog",{close:".grayleft_addbtn,.pup_close"}).find(".blueleft_btn").click(function(){$("#pup_upbox").closeDialog(b)});$("#pup_upbox").find(".pup_close").click(c)};