this is done by creating an overlay div on the fly in JS, for example:
var gab = document.createElement('div'); gab.setAttribute('id', 'OVER'); gab.innerHTML='<div class="overlay"><h1>hello</h1></div>'; document.body.appendChild(gab);
use a CSS class like
#OVER{width:100%; height:100%; left:0; top:0; text-align:center; z-index:5; position:fixed; background-color:#fff;} .overlay {width:100%; z-index:6; left:0; top:30%; font-color:#cdcdcd; font-size:0.8em; text-align:center; position:fixed; background-color:#000;}
dunno, what is it called ..
source share