![]() |
Getting background to 'fade' while popup is displayed
How would I go about doing this? I'd like to create a "pop up effect", where a div "pops up" and its opacity is 1 while the background is transparent. If I do
document.body.style = '0.1'; it makes everything including the div transparent. I've also tried document.getElementById('popup').style.opacity = '1.0'; in addition to setting the body's style but to no avail. |
what happens when you do it with an id then? you said it didnt work but didnt specify...
either way, try it using JQuery, JQuery always ends up fixing my thoughts on this... and actually to be more specific: JQuery-UI... the example id prolly end up using is as follows: Code:
<!doctype html>instead of changing its transparency, change its color, just a thought.. |
Easy.
Code:
<body> |
Thanks, I was missing the second div.
|
| All times are GMT +1. The time now is 08:32 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.