username@email.com
2025-05-21 a980cd04341d71216e0f59bd4b7327fe9fc50032
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var sMClass = new Object();
 
sMClass = {
    sM_Text: "<div class='Dialog_Facebox_Alert_Popup'><table><tbody><tr><td class='Dialog_Facebox_Alert_TopLeft'></td><td class='Dialog_Facebox_Alert_Bg'></td><td class='Dialog_Facebox_Alert_TopReight'></td></tr><tr><td class='Dialog_Facebox_Alert_Bg'></td><td class='Dialog_Facebox_Alert_Body'>@MSG@</td><td class='Dialog_Facebox_Alert_Bg'></td></tr><tr><td class='Dialog_Facebox_Alert_BottomLeft'></td><td class='Dialog_Facebox_Alert_Bg'></td><td class='Dialog_Facebox_Alert_BottomReight'></td></tr></tbody></table></div>",
    sM_Time: 1500
};
 
var DDI = undefined;
 
$.fn.extend({
    showMessage: function (Message, callBack) {
        $(".Dialog_Facebox_Alert").remove();
        var sM_Text = sMClass.sM_Text;
        var sM_Time = sMClass.sM_Time;
        var msgObj = document.createElement("div");
        if (parseInt(Message.length) >= 9) {
            sM_Time = 3000;
        }
        $(msgObj).html(sM_Text.replace("@MSG@", Message)).addClass("Dialog_Facebox_Alert");
        var aI = 0;
        var aInt = setInterval(function () {
            try {
                aI++;
                if (aI > 2)
                    clearInterval(aInt);
 
                document.body.appendChild(msgObj);
                $(msgObj).css({ top: ($(window).height() / 2 + $(document).scrollTop() - $(msgObj).height() / 2), left: ($(window).width() / 2 - $(msgObj).width() / 2) }).show();
                function AlertMsgDisappear() {
                    //$(msgObj).animate({ top: parseInt($(msgObj).css("top")) - 60, opacity: 'toggle' }, { duration: 600 });
                    $(msgObj).fadeOut('normal');
                    if (callBack != undefined)
                        callBack();
                }
 
                var AlertMsgAnimate = setTimeout(AlertMsgDisappear, sM_Time);
                $(msgObj).mouseover(function () {
                    clearTimeout(AlertMsgAnimate);
                });
                $(msgObj).mouseout(function () {
                    AlertMsgAnimate = setTimeout(AlertMsgDisappear, 800);
                });
            }
            catch (e) { }
        }, 20);
    }
});