This is a long shot without seeing the code... but you can change the class of your whole box, and adjust the CSS rules for that class appropriately.
Or see the docs, there are at least 10 ways to do it: http://malsup.com/jquery/block/#demos
If you can do it for the message, you can do it for the whole block. So instead:
$("#Message").addClass("darkBackgroundColor");
you can add parent()
to it:
$("#Message").parent().addClass("darkBackgroundColor");
or simply select the class directly (see which element exactly you need, maybe blockMsg
or blockPage
...):
$(".blockUI").addClass("darkBackgroundColor");
or this:
$(".blockMsg").css("background-color", "#b4f9b6");