Take a look at how lightboxes do it. That's essentially what they're doing - the opaque layer that covers the page, and then the layer that goes on top of that layer. You are correct that the content cannot go inside the opaque layer, they need to be in separate, probably using some sort of positioning and layering for the effect to work.
Adrian
Adrian