if (typeof Object.create !== "function") {
Object.create = function (obj) {
function F() {}
F.prototype = obj;
return new F();
};
}
/* IE鐗堟湰 */
function versionIE(){
if(navigator.appName=="Microsoft Internet Explorer"){
var b_version=navigator.appVersion,
version=b_version.split(";"),
trim_Version=version[1].replace(/[ ]/g,"");
if(trim_Version=="MSIE8.0"){
return 'IE8';
}else if(trim_Version=="MSIE7.0"){
return 'IE7';
}else if(trim_Version=="MSIE6.0"){
return 'IE6';
}
return true;
}
return false;
}
/* 娑堟伅瀵硅瘽妗 */
var msgTimer;
var bodyOverflow;
function msgDialog(options){
if(document.getElementById("msgDialog")){
msgClose();
}
var defaults = {
text : "",
time : 0,
type : "success",
callback : function(){}
},
opts = $.extend(defaults,options),
style = "display:block;float:left;font-size:40px;line-height:1;",
html = "";
html += "
";
switch(opts.type){
case 'success':
html += "";
break;
case 'error':
html += "";
break;
case 'warning':
html += "";
break;
case 'loading':
html += "";
break;
case 'confirm':
html += "";
break;
}
html += "
"+opts.text+"
";
var strStyle = " cursor:pointer; padding:4px 15px; margin-right:20px; background:#0084e9; color:#fff; border-radius:3px; border:1px solid #0078d4;";
if(opts.type == "confirm"){
html += "";
}else if(opts.type != "loading" && opts.type != "success"){
html += "";
}
html += "