Originally posted by: l6873
One last try. I remember someone posting a link to a site which had this feature. When you clicked on an image, the image popped up and the rest of the page became grey and disabled. Unfortunately I can't find this site anymore. VBulletin forums also have a similar feature which gets employed when one tries to logout - but it only works in IE. I'm sure there are several more sites that have this, so if someone knows of such site, or even better, knows how to achieve this effect with javascript, I'd appreciate a reply.
Originally posted by: Chronoshock
The effect can be achieved by creating a new frame or window element the size of the browser and set the z-index style element to a number higher than all other elements (most sites don't even use z-index so setting it to like 5 is probably fine).
If you want it to be transparent, set the alpha style element to the desired value.
This new element should have focus and prevent things from being clicked. If you want anything to be on top (like a log-off dialog) just set the z-index of that element to something higher
Originally posted by: Chronoshock
The effect can be achieved by creating a new frame or window element the size of the browser and set the z-index style element to a number higher than all other elements (most sites don't even use z-index so setting it to like 5 is probably fine).
If you want it to be transparent, set the alpha style element to the desired value.
This new element should have focus and prevent things from being clicked. If you want anything to be on top (like a log-off dialog) just set the z-index of that element to something higher