I adopted sfdcfox'ssfdcfox's answeranswer, lightening the mask opacity, adding a white background window and text. I also used the Salesforce provided loading.gif
.
Here's the final result:
Here's the code:
<apex:actionStatus id="status">
<apex:facet name="start">
<div style="position: fixed; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.25; z-index: 1000; background-color: black;">
</div>
<div style="position: fixed; left: 0; top: 0; bottom: 0; right: 0; z-index: 1001; margin: 15% 50%">
<div style="display: inline-block; padding: 2px; background-color: #fff; width: 125px;">
<img src="/img/loading.gif" style="float: left; margin: 8px;" />
<span style="display: inline-block; padding: 10px 0px;">Please Wait...</span>
</div>
</div>
</apex:facet>
</apex:actionStatus>
Adjust the margin
in the second div margin: 15% 50%
to position the popup where you want.