If you changeposition: absolute
toposition: fixed
it will work in all browsers except IE6. This fixes the div to the viewport, so it doesn't move out of view when scrolling.
You can use$(document).height()
in jQuery to make it work in IE6 too. E.g.
$('.screenMask').height($(document).height());