Administrator
2023-04-21 195945efc5db921a4c9eb8cf9421c172273293f5
提交 | 用户 | 时间
58d006 1 //错误提示
A 2 function showErrmsg(str){
3     setErrmsg();
4     var neelerErrmsg = $("#neelerErrmsg");
5     neelerErrmsg.text(str).fadeIn("slow", function () {
6         setTimeout(function(){
7             neelerErrmsg.fadeOut("slow");
8         }, 2000);
9     });
10 }
11
12 function setErrmsg(){
13     var neelerErrmsg = $("<div></div>")
14         .attr("id", "neelerErrmsg")
15         .css({
16             "display": "none",
17             "position": "fixed",
18             "top": "150px",
19             "left": "20%",
20             "width": "60%",
21             "height": "50px",
22             "border": "1px solid #000",
23             "border-radius": "10px",
24             "line-height": "50px",
25             "text-align": "center",
26             "background": "rgba(0,0,0,.6)",
27             "color": "#FFF",
28             "z-index": "999999"
29         });
30     $("body").prepend(neelerErrmsg);
31 }