View Single Post
Old 02-08-2013, 05:59 AM   PM User | #1
elitis
Regular Coder

 
Join Date: Sep 2010
Posts: 321
Thanks: 9
Thanked 6 Times in 6 Posts
elitis is an unknown quantity at this point
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.
__________________
Coding is a challenge, get used to it
Always remember to debug
Try the guess & check method
Break it down into simple steps
elitis is offline   Reply With Quote