put this on master page
function DisplayMessage(msg, loading, loadingstart) {
var width = $(window).width();
var divwidth = $("#divStatusMsg").width();
$("#divStatusMsg").css({
marginLeft: (width / 2) - (divwidth / 2)
});
if (typeof (loading) == 'undefined') {
$("#divmsg").html(msg);
$("#divStatusMsg").fadeIn(300).delay(2000).fadeOut(300);
}
}
--------------------
<div id="divStatusMsg">
<div class="bl">
<div class="br">
<div class="tl">
<div id="divmsg" class="tr">
</div>
</div>
</div>
</div>
</div>
No comments:
Post a Comment