Creating modal window through jquery
<p>I am trying to create a mask (modal) on my whole website and for this i tried :</p>

<p><strong>css</strong></p>

<pre><code> #mask 
{
  position:absolute;
  z-index:9000;
  background-color:#000;
  display:none;
}
</code></pre>

<p><strong>js</strong></p>

<pre><code>   $('body').append(' &lt;div id="mask"&gt;&lt;/div&gt; ');
    var maskHeight = $(document).height();
    var maskWidth = $(window).width();

    $('#mask').css({ 'width': maskWidth, 'height': maskHeight, top: 0, opacity: 1 });
</code></pre>

<p>it works fine, but the mask is only on the visible part of my website, when i <code>scrolls down</code> there is no mask.Can anybody tell me the solution for this?</p>
