If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Greyed Background with popup layer

I can use dhtml window just fine to pop open a dhtml window in the middle of the screen. Great script.

I'd like to "grey out" the rest of the screen so that the popup is more apparent. Is there a way to accomplish this?

I assume I'd just want to somehow show a layer, with an opacity set to about 50%, just behind the dhtml window. But I don't know how to accomplish this (while using dhtml window).

(As a pseudo solution, I've made the outer border of the dhtml window 500 pixels, which basically blacks out the rest of the screen. Since you can't set an opacity for borders, this isn't my ideal solution, as I want the rest of the screen to partially show through.)

Thanks for the help. That's pretty unintuitive for me, that setting the opacity of the background would have that effect. I'd think the background opacity wouldn't have an affect on the main part of the page, as the background is behind the main part of the page. But it works!!!

Unfortunately, after adding the code, I found that I can't use it, as I have video in the dhtml window that pops up, and the opacity think causes the video to grind to a halt in IE. Go figure.

Thanks again for the knowledge though, I'll definitely use this idea in the future on more static dhtml popups.