dist/jquery.SPServices.js
function modalBox(msg) {
        var boxCSS = "position:absolute;width:300px;height:150px;padding:10px;background-color:#000000;color:#ffffff;z-index:30;font-family:'Arial';font-size:12px;display:none;";
        $("#aspnetForm").parent().append("<div id='SPServices_msgBox' style=" + boxCSS + ">" + msg);
        var msgBoxObj = $("#SPServices_msgBox");
        var height = msgBoxObj.height();
        var width = msgBoxObj.width();
        var leftVal = ($(window).width() / 2) - (width / 2) + "px";
        var topVal = ($(window).height() / 2) - (height / 2) - 100 + "px";
        msgBoxObj.css({
            border: '5px #C02000 solid',
            left: leftVal,
            top: topVal
        }).show().fadeTo("slow", 0.75).click(function () {
            $(this).fadeOut("3000", function () {
                $(this).remove();
            });
        });
    }
function modalBox(msg) {
        var boxCSS = "position:absolute;width:300px;height:150px;padding:10px;background-color:#000000;color:#ffffff;z-index:30;font-family:'Arial';font-size:12px;display:none;";
        $("#aspnetForm").parent().append("<div id='SPServices_msgBox' style=" + boxCSS + ">" + msg);
        var msgBoxObj = $("#SPServices_msgBox");
        var height = msgBoxObj.height();
        var width = msgBoxObj.width();
        var leftVal = ($(window).width() / 2) - (width / 2) + "px";
        var topVal = ($(window).height() / 2) - (height / 2) - 100 + "px";
        msgBoxObj.css({
            border: '5px #C02000 solid',
            left: leftVal,
            top: topVal
        }).show().fadeTo("slow", 0.75).click(function () {
            $(this).fadeOut("3000", function () {
                $(this).remove();
            });
        });
    }
function modalBox ( msg ) { var boxCSS = "position:absolute;width:300px;height:150px;padding:10px;background-color:#000000;color:#ffffff;z-index:30;font-family:'Arial';font-size:12px;display:none;" ; $ ( "#aspnetForm" ) . parent ( ) . append ( "<div id='SPServices_msgBox' style=" + boxCSS + ">" + msg ) ; var msgBoxObj = $ ( "#SPServices_msgBox" ) ; var height = msgBoxObj . height ( ) ; var width = msgBoxObj . width ( ) ; var leftVal = ( $ ( window ) . width ( ) / 2 ) - ( width / 2 ) + "px" ; var topVal = ( $ ( window ) . height ( ) / 2 ) - ( height / 2 ) - 100 + "px" ; msgBoxObj . css ( { border : '5px #C02000 solid' , left : leftVal , top : topVal } ) . show ( ) . fadeTo ( "slow" , 0.75 ) . click ( function ( ) { $ ( this ) . fadeOut ( "3000" , function ( ) { $ ( this ) . remove ( ) ; } ) ; } ) ; }
End of function errBox Call this function to pop up a branded modal msgBox
End of function errBox Call this function to pop up a branded modal msgBox